The simplest form of authentication is equivalent to that the Apache Web server used by default. It makes use of the module ncsa_auth, the translation of the squid-like sources produced by and was stored in the / opt / squid / sbin. The NCSA authentication refers to information on allowed user IDs and their associated passwords from a text file. This can be easily over the existing package in the Apache htpasswd utility (htpasswd2 on Suse Linux with Apache 2.0.x installed) generate:
Code:
cd / etc / squid
htpasswd-bc proxy_user testuser password
This command creates the file / etc / quid / proxy_user and this adds an account equal to the user "testuser" with password "password" to. Now enable the authentication by editing the file / etc / squid / squid.conf the block of keywords for Basic Authentication to read:
Code:
auth_param basic program / opt / squid / sbin / ncsa_auth / etc / squid / proxy_user
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentials 2 hours
It is sufficient, the preceding comment line to free the first and to call the module and the parameters ncsa_auth path to the file containing the user accounts to supplement the.
Bookmarks