- Install squid3
sudo apt-get install squid3
- /etc/squid3/squid.conf
auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwords auth_param digest realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated http_port 3128
- Setting up a user
htdigest -c /etc/squid3/passwords proxy user
- Restart/reload squid
service squid3 restart
P.S.
-
tail -f /var/log/squid3/access.log
- digest auth is better than basic
The digest_pw_auth helper that comes with squid3 on Ubutnu 12.04 does NOT support the digest files generated by the apache htdigest tool. Instead it expects the “digest” file to contain a plain text user:password mapping, like so:
# sample digest file
user1:mypasword