[squid-users] How to write an acl that forces authentication only from specific networks?

From: Sean Boran <sean_at_boran.com>
Date: Wed, 5 Sep 2012 16:41:22 +0200

On my internal network, no user authenication is currently used, so the acl
is like
acl our_networks src "/etc/squid/our_networks.list"
http_access allow our_networks
http_access allow localhost
http_access deny all

Now I'd like to force authentication only from one IP 10.90.195.47s and
tried:
auth_param basic program /usr/local/squid/libexec/basic_ncsa_auth
/etc/squid/passwd

acl password proxy_auth REQUIRED
acl client1 src 10.90.195.47/32

add addin the following before "http_access allow our_networks":
http_access allow password src client1
but that https_acces line is wrong it kill squid :-)

Is there a way of doing this?

Thanks in advance,
Sean
Received on Wed Sep 05 2012 - 14:41:28 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 06 2012 - 12:00:02 MDT