Squid authentication

Standard

This describes how to set up squid auth with the /etc/passwd (actually /etc/shadow if you use it, which modern distros would)

Note: There are other ways to authenticate. Recommended reading is: http://www.squid-cache.org/Doc/FAQ/FAQ.txt

Nevertheless I have done this on a RedHat 9.0 machine in a secure environment and it works:

Do this as root:

chown root.root /usr/local/squid/bin/ncsa_auth
chmod 755 /usr/local/squid/bin/ncsa_auth
chmod u+s /usr/local/squid/bin/ncsa_auth

then change squid.conf so it reads :

auth_param basic program /usr/lib/squid/ncsa_auth /etc/shadow
auth_param basic children 5
auth_param basic realm proxy-caching
auth_param basic credentialsttl 2 hours

and add these lines:

acl passwd proxy_auth REQUIRED
http_access allow passwd

You then would create a normal user on your machine. Yes, they also get access to other things.

This should be all you have to do.


Disclaimer:
By reading and/or using the information within this web page you agree to hold the author, publisher and all related entities harmless from any claim directly or indirectly related to the information given or the use of any part of the information on this web site. Use at own risk. No responsibility taken.