Squid配置


http://wiki.ubuntu.org.cn/Squid%E9%85%8D%E7%BD%AE%E8%AF%A6%E8%A7%A3

example configure
http_port 8080

cache_log /var/log/squid/cache.log
access_log /var/log/squid/access.log squid

#cache_dir null /tmp
cache_dir aufs /var/cache/squid 64 16 256
#cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95

visible_hostname jfo.proxy.lab

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/password
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
auth_param basic blankpassword on

acl advance src 10.214.9.123/32
#acl normal proxy_auth REQUIRED src 222.205.0.0/16
acl normal proxy_auth REQUIRED
acl all src all
acl conncount maxconn 8

http_access allow advance
http_access deny conncount normal
http_access allow normal
http_access deny all