ncsa_auth is a function of the squid in the squid to perform authentication by using the NCSA / Apache httpd-style password. The first thing to do is be in mengistal squid and configuration. If the installation process is complete then the squid suah do in addition to its configuration file. Phase ² which needs to be done is:
- Make ncsa_auth user
# htpasswd /etc/squid/passwd user1Results will be like this:New password:
Re-type new password:
Adding password for user user1 - Make sure squid can read the file
# chmod o+r /etc/squid/passwd - Add Squid configuration
# vi /etc/squid/squid.confThen enter this in the squid.conf configurationauth_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 add the command belowacl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users - Then Restart squid# /etc/init.d/squid restart