cache_mem 2048 MB
cache_swap_low 90
cache_swap_high 95
dns_nameservers 10.15.0.1
maximum_object_size_in_memory 1024 KB
maximum_object_size 4096 KB
minimum_object_size 0 KB
#ipcache_size 1024
#ipcache_low 90
#ipcache_high 95
#fqdncache_size 1024
hierarchy_stoplist -i ^https:\\ ?
hierarchy_stoplist cgi-bin ?
acl denyssl urlpath_regex -i ^https:\\
no_cache deny QUERY
no_cache deny denyssl
#上面几个就是说遇到URL中有包含cgi-bin和以https:\\开头的都不要缓存,
#asp、cgi、php等动态脚本也不要缓存,
#https://开通的不缓存是因为一般我们进行电子商务交易,
#例如银行付款等都是采用这个的,如果把信用卡号什么缓存那不是很危险。
cache_log f:/squid/log/cache.log
hosts_file C:\WINDOWS\system32\drivers\etc\hosts
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
acl dlnet src 10.15.0.0/255.255.0.0
acl daixu src 10.15.203.233/255.255.255.255
acl zhoumin src 10.15.1.23/255.255.255.255
acl hanxiaoli src 10.15.0.32/255.255.255.255
acl xiaonei url_regex -i .xiaonei.com
acl taobao url_regex -i .taobao.com
acl othercompany dst 10.0.0.0/255.0.0.0
acl citrix dst 10.100.0.0/255.255.0.0
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 baidump3 dstdomain -i mp3.baidu.com
acl safesite dstdomain .51cto.com .microsoft.com .symantec.com .360safe.com .spdb.com.cn .95559.com.cn .cb.kingsoft.com .sogou.com .cmbchina.com
acl ipsite dst "c:/squid/etc/allow_ipsite.txt" #允许访问某些特定IP地址,有的税务网站、财务网站,需要添加它们的所有IP到这里,才可以使用!
acl SSL_ports port 80 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 Safe_ports port 1251 1252 2598 # citrix
#acl Safe_ports port 7001
#acl QQ_port port 4000 8000
acl CONNECT method CONNECT
acl allow_msn src "c:/squid/etc/allowmsnuser.txt"
acl msn_app rep_mime_type application/x-msn-messenger
acl web_msn dstdomain webmessenger.msn.com
http_access deny web_msn !allow_msn
http_reply_access deny msn_app !allow_msn
http_reply_access allow all
#这里写入允许使用QQ者的IP,一行一个
acl dl_qq src "c:/squid/etc/allowqquser.txt"
acl qq_ports port 4000-4020
acl qq_ports port 8000-8020
http_access allow dl_qq qq_ports
http_access deny qq_ports
#这里面写入要QQ登录服务器的IP地址
acl qqip dst "c:/squid/etc/qqip.txt"
http_access allow dl_qq qqip
http_access deny qqip
http_access allow hanxiaoli xiaonei
http_access allow baidump3
http_access allow safesite
http_access allow ipsite
http_access allow manager localhost
http_access deny manager
#http_access deny QQ_port
http_access deny !Safe_ports
#http_access deny CONNECT QQ_port
http_access deny CONNECT !SSL_ports
#acl qq_regex -i .tencent.com
#acl denyqq dstdomain .tencent.com
#http_access deny qqdeny
#http_access deny denyqq
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
request_body_max_size 5 MB
reply_body_max_size 1000 deny dlnet
#UDP
121.14.75.57
121.14.74.245
121.14.74.247
#
113.142.8.36
113.142.8.48
#
219.133.51.251
#
219.133.49.163
219.133.49.171
219.133.49.199
#
118.123.234.186
#
219.133.48.57
219.133.48.104
#
119.147.18.46
#
58.60.9.58
#
58.60.15.33
58.60.15.41
58.60.14.44
58.60.14.48
#
58.61.34.26
#
58.251.62.63
58.251.60.51
58.251.63.56
58.251.63.57
#
58.60.14.47
58.60.14.48
58.60.14.110
#
61.141.194.232
#
219.133.49.195
219.133.49.171
#
219.133.60.18
219.133.60.22
219.133.60.36
219.133.60.250
219.133.60.173
#
222.202.96.170
222.202.96.188
#################################
#TCP
58.251.62.31
58.251.62.25
58.251.62.17
#
121.14.75.51
121.14.74.247
#
119.147.14.146
#
219.133.48.106
219.133.60.250
#
58.60.14.180
#
219.133.48.104
219.133.49.206
#
121.14.101.149
#
58.251.60.53
#
222.73.10.102
#################################
#HTTPS:
121.14.102.16
asiaadult
sehu
game
play
chat
mov
playboy
222s.com
265.com
qq.com
tencent.com
movie
music
verycd.com
mp3
tudou.com
56.com
mofile.com
5show.com
pomoho.com
uume.com
6.cn
ouou.com
qyule.com
youtube.com
vodone.com
youku.com
cnboo.com
ku6.com
tvix.cn
seehaha.com
155.com
quxiu.com
wangyou.com
51tv.net
ourdv.com
podlook.com
piekee.com
maidee.com
lifepop.com
vottie.com
365cast.com
aeeboo.com
metacafe.com
vsocial.com
ebay.cn
eachnet.com
taobao.com
kaixin001.com
kaixin.com
ebuddy.com
xiaonei.com
meebo.com
imhaha.com
acl dl_qq src "c:/squid/etc/allowqquser.txt"
acl qq_ports port 4000-4020
acl qq_ports port 8000-8020
http_access allow dl_qq qq_ports
http_access deny qq_ports
#这里面写入要QQ登录服务器的IP地址
acl qqip dst "c:/squid/etc/qqip.txt"
http_access allow dl_qq qqip
http_access deny qqip