linux poison RSS
linux poison Email

Squid Password Authentication Using PAM

We’ll be using the pam_auth module. This will allow anyone who has a shell account to also be able to use the Squid server. Search for the auth_param section in the config and add 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 this line and uncomment it:

acl password proxy_auth REQUIRED

Now create a pam module called /etc/pam.d/squid that contains:

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

Restart the squid and you are done.



2 comments:

Unknown said...

Uh, the set of squid.conf configurations doesn't include:
http_access allow password

It should have been obvious, but I've only been playing around a squid for a couple of days.

But really helpful. Thanks.

Post a Comment

Related Posts with Thumbnails