Koozali.org: home of the SME Server

How can I block port 80

David Trask

How can I block port 80
« on: May 01, 2002, 08:54:32 PM »
Here's my situation.  I have 2 e-smith boxes....one running Stephen Noble's DansGuardian Module along with Squid and another running as my router/firewall/DHCP server.  What I want to do is block access to port 80 on my router box so that the kids here in school can't simply bypass the filter by changing or disabling the proxy settings in their browser.  How can I do this....can I do it for a range or a list and can I leave certain machines (like mine) out of that block?  Any ideas?  Thanks!


David

Jan

Re: How can I block port 80
« Reply #1 on: May 02, 2002, 02:11:38 AM »

Jan

Re: How can I block port 80
« Reply #2 on: May 02, 2002, 02:14:24 AM »
Sorry I intended to reply to a different article.

Jan

JD

Re: How can I block port 80
« Reply #3 on: May 06, 2002, 06:26:01 AM »
IN ...

/etc/e-smith/templates/etc/rc.d/init.d/masq

added a file ... 47DenyWWWConnects

which contains ...
{
 $OUT .= " /sbin/ipchains -I input -y -p tcp -s 0/0 --dport 80
 -j DENY\n";

}