Created
February 9, 2015 08:28
-
-
Save Shellbye/1daf96b51d45159b2be5 to your computer and use it in GitHub Desktop.
Revisions
-
Shellbye created this gist
Feb 9, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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'