root#yum -y install squid
root#vi /etc/squid/squid.conf
...
http_port 3128
...
visible_hostname hostname
...
acl mynet src 192.168.1.0/24
http_access allow mynet
acl badsites url_regex "/etc/squid/bad_sites"
http_access deny badsites
http_access deny all
:wq!
root#/etc/init.d/squid start
No comments:
Post a Comment