贴配置文件吧!

 
  
  1. acl all src 0.0.0.0/0 
  2. acl msnapp req_mime_type ^application/x-msn-messenger$ 
  3. acl msn url_regex -i gateway.dll 
  4.  
  5. acl badport port 8000 1863 6891 6890 13324 13325  4000 1080 8001 28120 
  6. acl Safeport port 80 21 70 210 1025-65535 
  7. acl SSL_port port 443 
  8. acl qqdomain dstdomain .qq.com .tencent.com 
  9. acl qqip dst "/usr/local/etc/squid/qqip" 
  10. acl CONNECT method CONNECT 
  11.  
  12. http_access deny CONNECT badport 
  13. http_access deny CONNECT !Safeport 
  14. http_access deny CONNECT !SSL_port 
  15. http_access deny CONNECT qqdomain qqip 
  16.  
  17. http_access deny msnapp 
  18. http_access deny msn 
  19. http_access allow all 
  20. pid_filename /usr/local/etc/squid/squid.pid 
  21. http_port 3128 
  22. cache_mem 256 MB 
  23. cache_dir ufs /usr/cache 2000 16 256 
  24. minimum_object_size 0 KB 
  25. maximum_object_size 4096 KB 
  26. cache_swap_low 90 
  27. cache_swap_high 95 
  28. update_headers on 
  29. access_log /var/squid/logs/access.log squid 
  30. cache_store_log none 
  31. logfile_rotate 5 
  32. pid_filename /var/squid/logs/squid.pid 
  33. coredump_dir /var/squid/cache 

最终效果:客户端QQ设置了代理也无法上网,MSN连不上!