Search Suggest

Squid web authentication using proxy_auth


In this tutorial i am going to protect webrowser using proxy_auth , user can't use internet without username and password.

Create Password file
# htpasswd -c  /etc/squid/userlist shahzad
#chmod o+r /etc/squid/userlist

Check ncsa_auth location
#rpm -ql squid | grep ncsa_auth


#vim /etc/squid/squid.conf
#add lines in top of configuration file
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/userlist
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

#create acl
acl ncsa_users proxy_auth REQUIRED

#apply acl
http_access allow ncsa_user











Reload Squid service
# service squid reload

Now access internet 



Đăng nhận xét