Squid proxy in Ubuntu with password authentication

  1. Install squid3
    sudo apt-get install squid3
    
  2. /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
    
  3. Setting up a user
    htdigest -c /etc/squid3/passwords proxy user
    
  4. Restart/reload squid
    service squid3 restart
    

P.S.