From the manual, Squid can be configured to require a user and password in order to use it. We will use digest http auth. First, I install Squid and apache2-utils (to generate htdigest) as root.
# sudo su -Edit /etc/squid3/squid.conf, and put these lines:
# apt-get install squid3
# apt-get install apache2-utils
auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwordsThen, create user by type this command:
auth_param digest realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
# htdigest -c /etc/squid3/passwords proxy userAll done, and I enjoy squid with authentication.
0 comments:
Post a Comment