Setup squid a forward proxy with basic auth
Execute following line and enter a password:
htpasswd -c /etc/squid/passwd proxy
Add following lines at the top of /etc/squid/squid.conf
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 4
auth_param basic realm Please enter credentials!
auth_param basic credentialsttl 60 minutes
auth_param basic casesensitive off
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
Restart squid:
service squid restart
Sources:
https://dokuwiki.nausch.org/doku.php/centos:squid:auth
How do I allow access to all requests through squid proxy server?
I want to enable access to all requests on Squid3 server ie. request from anywhere to anywhere through the proxy server should be allowed. I’ve already tried adding this to the end of config file ...
![](https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded)
Squid proxy - a short guide (forward & transparent proxy examples, SSL bumping, links to guides) from sysadmin