You are correct, at least, adding the sites I want to block to hosts.deny doesn't do anything for web-pages. I have never used squid before, and just masq the internet connections using iptables (a protocol that I still find cryptic) I guess I will have to learn some more :) My hope is that squid is easy to set-up. Once more into the breach. . ..

Jim


Correct me if I'm wrong on this one, but the tcp_wrappers
/etc/hosts.allow and /etc/hosts.deny are for _incoming_ daemon
connections that are compiled against tcp_wrappers.

Want to block access to some sites?  Use Squid.  It's included on the
Red Hat v8 cdroms.

Edit the /etc/squid/squid.conf file and you can block access like this:

acl     blockedsites    dstdomain       .microsoft.com
acl     blockedsites    dstdomain       .hotmail.com

http_access deny blockedsites

These lines have to be in certain sections on the configuration file,
order does matter.

--
Caleb Groom <[EMAIL PROTECTED]>



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to