這是本文件的舊版!


pkg install squid-3.5.23
pkg install py27-htpasswd-2008.03.05_2
sysrc squid_enable="YES"
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwords
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
touch /usr/local/etc/squid/passwords
htpasswd.py -b /usr/local/etc/squid/passwords username password
squid -f /usr/local/etc/squid/squid.conf -k parse