The squid file is like this
#Default:
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /var/spool/squid 999 16 256
cache_log /var/log/squid/cache.log
client_netmask 255.255.255.0
# ACCESS CONTROLS
# TAG: acl
acl yahoo dstdomain "/etc/squid/yahoo"
acl all src 10.0.0.0
# ********************************************
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl test src 10.1.2.20 10.1.7.103
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
squid_passwd
no_cache deny QUERY
http_access allow test yahoo
http_access allow manager localhost
http_access allow manager
http_access allow !Safe_ports
http_access allow CONNECT !SSL_ports
http_access deny all
The yahoo file contains a single line as
.yahoo.com
Last edited by RatanSA; 02-07-2006 at 10:42 PM.
|