Squid ACL

Taking care of your Linux box.
Posts: 69
Joined: Wed Dec 06, 2006 3:51 pm

Squid ACL

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


I need ACL for the following scenario:

If user "A" with IP "" then authenticate
If user "B" with IP "" then authenticate
If user "C" with IP "" then authenticate

Means if user login with username with specific IP then squid authenticate otherwise block it request.

Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi


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

Dear refra,

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
acl client2 src
acl client3 src
http_access allow client1 password
http_access allow client2 password
http_access allow client3 password
http_access deny all

Best Regards.
Farrukh Ahmed

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest