Skip to content

Instantly share code, notes, and snippets.

@Shellbye
Created February 9, 2015 08:28
Show Gist options
  • Save Shellbye/1daf96b51d45159b2be5 to your computer and use it in GitHub Desktop.
Save Shellbye/1daf96b51d45159b2be5 to your computer and use it in GitHub Desktop.

Revisions

  1. Shellbye created this gist Feb 9, 2015.
    12 changes: 12 additions & 0 deletions basic_squid3
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # ref http://stackoverflow.com/questions/3297196/how-to-set-up-a-squid-proxy-with-basic-username-and-password-authentication
    # first install apache:
    # $ sudo apt-get install -y apache2-utils
    # add these five lines to /etc/squid3/squid.conf
    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
    http_port 3128 # or whatever you like

    htpasswd -cd /etc/squid3/passwords username
    # then type password twice and you will see 'Adding password for user username'