Typical task:
We order server at India, for development needs. Need to setup web proxy with authentication. Use squid, Luke!
#htpasswd -c /etc/squid/passwd username
#htpasswd /etc/squid/passwd
#htpasswd /etc/squid/passwd
squid.conf
forwarded_for off #don`t show user real IP at HTTP headers
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
<span id="more-193"></span>
auth_param basic children 5
auth_param basic realm India proxy server
auth_param basic credentialsttl 2 hours
acl auth proxy_auth REQUIRED
............
http_access allow auth
http_access deny all
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
<span id="more-193"></span>
auth_param basic children 5
auth_param basic realm India proxy server
auth_param basic credentialsttl 2 hours
acl auth proxy_auth REQUIRED
............
http_access allow auth
http_access deny all
That`s All
0 Comments.