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.

Tagged , , , , , , . Bookmark the permalink.

One Response to Squid proxy in Ubuntu with password authentication

  1. artistoex says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *