Search squid archive

Re: allow group 1 to access few sites and group 2 to access another group of sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux