|
|
我用的是ADSL共享上网,用squid+iptables透明代理。
我的squid.conf配置如下:请大家帮我分析一下,问题出在哪里,谢谢!
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 256 MB
cache_dir ufs /var/spool/squid 4096 16 256
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
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
# deny MSN users
acl MSN_Group src 192.168.0.3
# Special Dept & Person
acl Personnel src 192.168.0.3
# Restricted Times
acl WorkingHours1 time M T W H F 09:00-12:00
acl WorkingHours2 time M T W H F 13:00-18:00
# Restricted Sites
acl MSNSites dstdomain .msgr.hotmail.com
acl msnmessenger req_mime_type ^application/x-msn-messenger$
acl PersonnelSites dstdomain .51job.com
acl PurchaseSites dstdomain .ebay.com.cn
acl PurchaseSites dstdomain .taobao.com
# MSN deny
http_access deny MSN_Group MSNSites
http_access allow Personnel PersonnelSites
http_access allow all
# and finally allow by default
http_reply_access allow all
#Allow ICP queries from everyone
icp_access allow all
visible_hostname Linux_Proxy
httpd_accel_port 80
httpd_accel_host Linux_Proxy
httpd_accel_with_proxy off
httpd_accel_uses_host_header on
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid
请大家多多指教,谢谢了! |
|