分类:
2008-10-15 16:53:27
大家看squid.conf配置正確否:
# 服?器配置
http_port 10.10.7.17:3128
cache_mgr
cache_dir ufs /var/squid
cache_mem 64MB
cache_swap_low 90
cache_swap_high 95
cache_access_log /var/squid/access.log
cache_log /var/squid/cache.log
cache_store_log /var/squid/store.log
visible_hostname ZHZ02.proxy
client_netmask 255.255.0.0
#透明代理
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_user_host_header on
# 用?分?
acl advance arp 00:01:02:1f:2c:3e 00:01:02:3c:1a:8b ...
acl normal arp 10:00:df:ef
acl all src 0.0.0.0/0
# 行?分?
acl port1 port 0-65565
acl port2 port 80
acl mmxfile urlpath_regex \.mp3$ \.avi$ \.exe$ \.swf$
acl conncount maxconn 7
acl worktime time SMTWHFA 8:00-23:59
acl worktime2 time MTWHFA 8:00-12:00 13:00-17:00
acl sinapage dstdomain ok.sina.com.cn
acl qq dstdomain .tcccent.com.cn
# ?理
http_access allow port1
http_access deny sinapage
http_access deny qq
http_access deny conncount advance
http_access deny !worktime
http_access allow advance
http_access deny sinapage
http_access deny qq
http_access deny conncount advance
http_access deny mmxfile
http_access allow port2
http_access deny !worktime2
http_access allow normal
http_access deny all