這是本文件的舊版!
squid
install
pkg install squid sysrc squid_enable="YES"
config
/usr/local/etc/squid/squid.conf
auth_param digest realm proxy auth_param digest program /usr/local/libexec/squid/digest_file_auth -c /usr/local/etc/squid/password acl users proxy_auth REQUIRED acl ncku src 140.116.0.0/16 http_access allow users http_access allow ncku http_port 3128 # Leave coredumps in the first cache dir coredump_dir /var/squid/cache
apache-htdigest -c /usr/local/etc/squid/passwords realm username # or htdigest if apache-htdigest is not found
check config
squid -f /usr/local/etc/squid/squid.conf -k parse
start service
service squid start