SQUID 禁止QQ与MSN
贴配置文件吧![*]acl all src 0.0.0.0/0
[*]acl msnapp req_mime_type ^application/x-msn-messenger$
[*]acl msn url_regex -i gateway.dll
[*]
[*]acl badport port 8000 1863 6891 6890 13324 133254000 1080 8001 28120
[*]acl Safeport port 80 21 70 210 1025-65535
[*]acl SSL_port port 443
[*]acl qqdomain dstdomain .qq.com .tencent.com
[*]acl qqip dst "/usr/local/etc/squid/qqip"
[*]acl CONNECT method CONNECT
[*]
[*]http_access deny CONNECT badport
[*]http_access deny CONNECT !Safeport
[*]http_access deny CONNECT !SSL_port
[*]http_access deny CONNECT qqdomain qqip
[*]
[*]http_access deny msnapp
[*]http_access deny msn
[*]http_access allow all
[*]pid_filename /usr/local/etc/squid/squid.pid
[*]http_port 3128
[*]cache_mem 256 MB
[*]cache_dir ufs /usr/cache 2000 16 256
[*]minimum_object_size 0 KB
[*]maximum_object_size 4096 KB
[*]cache_swap_low 90
[*]cache_swap_high 95
[*]update_headers on
[*]access_log /var/squid/logs/access.log squid
[*]cache_store_log none
[*]logfile_rotate 5
[*]pid_filename /var/squid/logs/squid.pid
[*]coredump_dir /var/squid/cache
最终效果:客户端QQ设置了代理也无法上网,MSN连不上!
附件:http://down.运维网.com/data/2359303
页:
[1]