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..



Share this

Related Posts

Previous
Next Post »

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