Re: [squid-users] allow group 1 to access few sites and group 2 to access another group of sites

From: Indunil Jayasooriya <indunil75_at_gmail.com>
Date: Tue, 3 Jun 2008 08:37:33 +0530

> is there a way using squid proxy to somehow allow certaint people to
> access some websites and another group of people access another group
> of websites?
>
> maybe some sort of authentication of some sort?

yes. I am running with nsca_auth

pls add below lines to squid.conf file

 auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd

acl ncsa_users proxy_auth REQUIRED

acl group1 proxy_auth user1 user2 user3 user4 user5
acl group2 proxy_auth user6 user7
acl group3 proxy_auth user9 user11

acl DOMAINSLIST1 dstdomain .bbc.com .cnn.com
acl DOMAINSLIST2 dstdomain .google.com .yahoo.com .gmail.com
acl DOMAINSLIST3 dstdomain .bsd.org .openbsd.org .freebsd.org .redhat.com

http_access deny group1 !DOMAINSLIST1
http_access deny group2 !DOMAINSLIST2
http_access deny group3 !DOMAINSLIST3

http_access allow ncsa_users

then, using htpasswd file , pls add users as follows

[root_at_gateway ~]# htpasswd /etc/squid/squid_passwd user1
New password:
Re-type new password:
Adding password for user user1

finally, Pls restart squid server.

That's it

Happy squiding

-- 
Thank you
Indunil Jayasooriya
Received on Tue Jun 03 2008 - 03:07:36 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 03 2008 - 12:00:02 MDT