- 论坛徽章:
- 0
|
visible_hostname Linux
http_port 192.168.0.1:3128
cache_effective_user squid
cache_effective_group squid
cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_dir ufs /usr/local/squid/cache 100 16 256
hierarchy_stoplist cgi-bin ?
hierarchy_stoplist -i ^https:\\ ?
#cache_store_log none
#cache_log /dev/null
#cache_access_log none
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi
acl denyssl urlpath_regex -i ^https:\\
no_cache deny QUERY
no_cache deny denyssl
#logfile_rotate 30
cache_access_log /usr/local/squid/var/logs/access.log
cache_log /usr/local/squid/var/logs/cache.log
cache_store_log /usr/local/squid/var/logs/store.lo
pid_filename /usr/local/squid/var/logs/squid.pid
#acl all src 0.0.0.0/0.0.0.0
#acl manager proto cache_object
#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
#用户分类
acl advance arp 04:0A:61:B3:0D:A3
acl LanUser src 192.168.0.2-192.168.0.50/32
#行为分类
acl download urlpath_regex -i \.mp3$ \.rmvb$ \.rm$ \.exe$
acl worktime time SMTWHFA 8:30-19:00
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
#具体规则
http_access allow advance
http_access allow localhost
http_access deny download worktime
http_access allow LanUser
http_access deny all
差不多这个样子了,其它的就略去了,可以用flashget和讯累下载直接,比如用"摆渡"搜索出来的mp3.但是当使用web讯雷下电影时就有的可以有的不可以,上不了bt1.btchina.net,总之,不知道是什么原因了,我的环境如我上一楼的贴子,代理服务器用192.168.0.250的网关,其他被代理的电脑用192.168.0.220的网关,哎,先下班吧,谢谢大家帮忙看看,squid应该是没有问题的,都重新装,编译,重写过n次了. |
|