htpasswd /etc/squid/passwd user1
chmod o+r /etc/squid/passwd
dpkg -L squid3 | grep ncsa_auth
vi /etc/squid/squid.conf
 
Append (or modify) following configration directive:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

Also find out your ACL section and append/modify
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
Save and close the file.

0

easy docker for high speed internet proxy


docker pull sameersbn/squid:3.3.8-15

docker build -t sameersbn/squid github.com/sameersbn/docker-squid
Start Squid using:
docker run --name squid -d --restart=always -v "/root/squid":/etc/squid3 \
--publish 3128:3128 \
--volume /srv/docker/squid/cache:/var/spool/squid3 \
sameersbn/squid:3.3.8-15
0