squid 3.x with Basic Authentication

I have recently setup squid 3.x on my raspberry; And wanted to add some basic authentication

Below, the lines needed to enable it; Once in place you can use this command to add user:

 

	htpasswd -b -c /etc/squid3/passwd username password
example:
        htpasswd -b -c /etc/squid3/passwd joe joepassword

 

 

auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd

auth_param basic children 5

auth_param basic realm Linux Class
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

acl mynetwork proxy_auth REQUIRED

Leave a Reply

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