- 论坛徽章:
- 0
|
关于squid需要注意的一些问题及不足
我非常歉意,这些天忙的很,又回了一下老家四川,所以就这样了,你们先试一下这个,我确实没问题,你们也可以给我打电话,也可以发邮件给我,zbyue@starlight.net.cn。
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 auth_user proxy_auth REQUIRED
acl CONNECT method CONNECT
# acl advance src "/etc/squid/advance_ip"
acl mmxfile urlpath_regex -i \.mp3$ \.avi$ \.eml$ \.rm$
acl denyip dstdomain .tencent.com .tencent.com.cn
acl allowed_ip src "/etc/squid/normal_ip"
acl allowed_mac arp "/etc/squid/normal_mac"
http_access deny denyip
http_access deny mmxfile
http_access deny !allowed_mac
http_access deny !allowed_ip
http_access allow auth_user allowed_mac
http_access allow all |
|