blocking access to internet for subnet Code Answer

enter image description here

This is my setup. I want to block the access to the internet for a certain subnet ( 192.168.200.X). I still want to be able to access my internal Webserver. I tried blocking the subnet by adding:

iptables -I INPUT -s 192.168.200.0/255.255.255.0 -j DROP

But it isn’t working.

Answer

Have you tried adding that to the FORWARD chain rather than INPUT?

Here is a good starting guide

Related Posts

© No Copyrights, All Questions are retrived from public domain.
Tutorial Guruji