Squid password authentication

Add this to /etc/squid/squid.conf:

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_password
auth_param basic children 5
auth_param basic realm Linux Class
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl class proxy_auth REQUIRED
http_access allow class

And create a password file:

htaccess -c /etc/squid/squid_password username

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s