- 论坛徽章:
- 0
|
freebsd7.0+squid2.6.STABLE16,squid通过ports安装,squid.conf文件如下:
http_port 3128
cache_mem 32 MB
cache_swap_low 80
cache_swap_high 95
auth_param basic program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/passwd
auth_param basic children 5
auth_param basic realm 请输入你的用户名和密码
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
cache_log /usr/local/squid/logs/cache.log
cache_store_log none
pid_filename /usr/local/squid/logs/squid.pid
cache_access_log /usr/local/squid/logs/access.log
acl password proxy_auth REQUIRED
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 CONNECT method CONNECT
acl localuser src 192.168.0.0/255.255.0.0
acl SSL_ports port 443 563
acl Safe_ports port 1-65535
http_access allow manager localhost
http_access deny manager
http_access deny CONNECT !SSL_ports
http_access deny !Safe_ports
http_access allow password
http_access deny all
目前浏览网页等服务均正常,只是网易的popo软件无法通过代理设置的用户名验证登录 |
|