Sharing Knowledge | System Admin Articles

PAM Authentication for Squid Proxy Server



Here the steps to PAM Authentication for squid proxy server. We are going to use the pam_auth module. 
This will allow anyone who has a Linux or Unix shell account, will be able to use the Squid server


To configure PAM Authentication, Edit the /etc/squid/squid.conf file:


Search for the auth_param section in the config file and add or uncomment these lines:



auth_param basic program /usr/lib/squid/pam_auth
auth_param basic children 5
auth_param basic realm Squid proxy-caching
web server
auth_param basic credentialsttl 2 hours


Next, search for the following line and uncomment it:


acl password proxy_auth REQUIRED


Now create a pam module called /etc/pam.d/squid and add the following lines to that module file.


auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so


Finally, Restart the squid : 


service squid restart or  /etc/init.d/squid restart


Thats all... You are done.. Now advise your users to use the UNIX/LINUX Passwords to access internet..





Labels: Linux, Quick HOWTO, Squid

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "PAM Authentication for Squid Proxy Server"

What do you think about this Article? Add your Opinion..!

Back To Top