Difference between revisions of "Squid with authentication Ubuntu 14.04"
Line 1: | Line 1: | ||
− | |||
Install squid and apache2-utils: | Install squid and apache2-utils: | ||
apt-get install squid3 apache2-utils | apt-get install squid3 apache2-utils | ||
+ | |||
+ | |||
+ | In <b>Ubuntu 16</b> use squid/ folder instead of squid3/ and squid as service name instead of squid3 | ||
+ | |||
+ | |||
Open config file: | Open config file: | ||
nano /etc/squid3/squid.conf | nano /etc/squid3/squid.conf |
Latest revision as of 09:06, 24 October 2017
Install squid and apache2-utils:
apt-get install squid3 apache2-utils
In Ubuntu 16 use squid/ folder instead of squid3/ and squid as service name instead of squid3
Open config file:
nano /etc/squid3/squid.conf
Make it look like this:
auth_param digest program /usr/lib/squid3/digest_file_auth -c /etc/squid3/passwords auth_param digest realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated http_port 3128
Create user:
htdigest -c /etc/squid3/passwords proxy username
Restart sqiud:
service squid3 restart
Watch access log:
tail -f /var/log/squid3/access.log