Squid ACL

Taking care of your Linux box.

Squid ACL

Postby refra » Wed Nov 19, 2008 11:14 am

AOA,


I need ACL for the following scenario:


If user "A" with IP "192.168.0.3" then authenticate
If user "B" with IP "192.168.0.7" then authenticate
If user "C" with IP "192.168.0.12" then authenticate

Means if user login with username with specific IP then squid authenticate otherwise block it request.
refra
Naik
 
Posts: 69
Joined: Wed Dec 06, 2006 3:51 pm

Re:

Postby LinuxFreaK » Thu Nov 20, 2008 10:10 am

Dear refra,
Salam,

Try this configuration.

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid - Server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl password proxy_auth REQUIRED
acl client1 src 192.168.0.3
acl client2 src 192.168.0.7
acl client3 src 192.168.0.12
http_access allow client1 password
http_access allow client2 password
http_access allow client3 password
http_access deny all


Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron