Squid-Password Authentication Using NCSA
You can configure Squid to prompt users for a username and password. Squid comes with a program called ncsa_auth that reads any NCSA-compliant encrypted password file. You can use the htpasswd program that comes installed with Apache to create your passwords. Here is how it’s done:
1) Create the password file. The name of the password file should be /etc/squid/squid_passwd, and you need to make sure that it’s universally readable.
[root@bigboy tmp]# touch /etc/squid/squid_passwd
[root@bigboy tmp]# chmod o+r /etc/squid/squid_passwd
2) Use the htpasswd program to add users to the password file. You can add users at anytime without having to restart Squid. In this case, you add a username called www:
[root@bigboy tmp]# htpasswd /etc/squid/squid_passwd www
New password:
Re-type new password:
Adding password for user www
[root@bigboy tmp]#
3) Find your ncsa_auth file using the locate command.
[root@bigboy tmp]# locate ncsa_auth
/usr/lib/squid/ncsa_auth
[root@bigboy tmp]#
4) Edit squid.conf; specifically, you need to define the authentication program in squid.conf, which is in this case ncsa_auth. Next, create an ACL named ncsa_users with the REQUIRED keyword that forces Squid to use the NCSA auth_param method you defined previously. Finally, create an http_access entry that allows traffic that matches the ncsa_users ACL entry. Here’s a simple user authentication example; the order of the statements is important:
#
# Add this to the auth_param section of squid.conf
#
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
#
# Add this to the bottom of the ACL section of squid.conf
#
acl ncsa_users proxy_auth REQUIRED
#
# Add this at the top of the http_access section of squid.conf
#
http_access allow ncsa_users
5) This requires password authentication and allows access only during business hours. Once again, the order of the statements is important:
#
# Add this to the auth_param section of squid.conf
#
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
#
# Add this to the bottom of the ACL section of squid.conf
#
acl ncsa_users proxy_auth REQUIRED
acl business_hours time M T W H F 9:00-17:00
#
# Add this at the top of the http_access section of squid.conf
#
http_access allow ncsa_users business_hours
Remember to restart Squid for the changes to take effect.
Source : www.linuxhomenetworking.com
- auth_param basic program /etc/squid/squid_passwd
- auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
- password authentication using NCSA
- acl password proxy_auth Required ncsa
- password squid
- using ncsa authentication squid
- NCSA squid authentication
- squid auth random password
- ncsa and squid tutorial
- squid user acl auth ncsa
- squid password
- squid auth ncsa
- squid conf ncsa
- auth_param program squid
- NCSA source squid
- squid ncsa create password
- Password Authentication Using NCSA
- auth squid ncsa_auth
- password file with ncsa
- squid 3 squid conf auth ncsa
- psp Wvp username password
- squid ACL tutorial
- squid authentification ncsa
- NCSA authentication for squid
- squid ncsa
- acl ncsa_users proxy_auth REQUIRED
- user authentication in squid ncsa
- ncsa_auth create password file
- http_access ncsa
- squid conf auth user
- ncsa squid adding users
- ncsa source squid
- squid 3 ncsa auth
- ncsa auth conf
- auth squid
- squid3 proxy_auth REQUIRED
- squid authentication ncsa_auth
- ncsa_auth password file
- auth_param basic program
- squid authentification NCSA
- squid ncsa download
- squid3 ncsa
- acl ncsa_users proxy_auth
- Squid traffic counter with authentication
- squid password conf
- how to use auth_param
- squid ncsa authenticate problem
- create squid_passwd
- squid ncsa_auth
- squid 3 ncsa_auth
- ncsa_auth source
- squid auth
- multi passwords file squid
- ncsa user password file
- define the authentication program in squid conf ncsa
- ncsa_auth as root
- ncsa authentication squid 3
- NCSA squid
- how to configure ncsa authentication in squid ?
- add users in squid3
- generate password ncsa_auth
- configure squid 3 password
- squid3 ncsa_auth password file
- squid authentication with NCSA
- squid authentication tutorial
- auth_param basic program squid3
- squid 3 ncsa
- f
- squid3 and squid conf and auth
- NCSA authentication squid
- How to authenticate ncsa_users with squid
- squid authentication ncsa
- download NCSA squid
- enable password authentication to squid
- squid3 auth ncsa
- squid3 authentification ncsa_auth
- squid3 ncsa_auth
- password authentication sample squid conf
- sample squid conf password authentication
- squid with ncsa
- squid3 proxy_auth
- password authentication in squid
- squid3 ncsa authen
- download ncsa in squid
- ncsa auth download
- create password squid3
- squid password authentication
- how add ncsa_auth in squid 3
- squid authentication with ncsa_auth





























