Re: [squid-users] block accounts

From: Kinkie <[email protected]>
Date: Tue, 04 Jan 2005 23:48:24 +0100

On Tue, 2005-01-04 at 15:35, Ian Morgan wrote:
> We use Squid with ncsa authentication and have several networks and a
> generic username for specific users. However, is it possible to block users
> from a specific network (10.1.3.0) from using the generic account? In other
> words I want 10.1.3.0 not to use 10.1.1.0's generic username but create one
> solely for that network.

Sure it is: i.e.

acl net1 src 10.1.3.0/255.255.255.0
acl net2 src 10.1.1.0/255.255.255.0
acl user1 proxy_auth user1
acl user2 proxy_auth user2
acl all src 0.0.0.0/0.0.0.0

http_access allow net1 user1
http_access allow net2 user2
http_access deny all

        Kinkie
Received on Tue Jan 04 2005 - 15:48:28 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 07 2005 - 12:59:35 MST