On Thu, 10 Feb 2005 11:18:14 +0530, Indranil Das Gupta <[EMAIL PROTECTED]> wrote:

Hi,

On Thu, 2005-02-10 at 10:47 +0530, Anupam Saha wrote:

We are using FC2 as a firewall PC connected to the internet through a router. I want to block some site like yahoo messenger and other uncensored sites. Can anybody help me to configure "iptable" scipt or related config files to do the same?

Use firestarter and block the YM! ports.... for sites use a SQUID blocklist.
To block uncensored sites, use "acl"s in squid.conf for different sites, next deny them in also squid.conf. Then nobody will be able to access those sites.
e.g.
suppose you want to block badsite.com, so you have to add following lines in squid.conf:
acl bad1 dstdomain .badsite.com
Now, you have just created a acl for that site, and you to block that now, to do, add again in squid.conf following line:
http_access deny bad1
You must be aware about the order of the last line. The rule is - first deny all, then you just give privileges to others.


bye
prosun


cheers,
-indra.


Anupam





-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to