Re: ACL problems

From: Arjan de Vet <>
Date: Thu, 3 Apr 1997 01:20:27 +0200 (MET DST)

In article <> you write:

>I=B4m a Squid begginer and I don`t understad how ACL works.
>How can I get the next scenario?
>allow Clients1 go everywhere out
>allow Clients2 go only some_sites1
>allow Clients3 go only some_sites2

Something like this:

    acl all src
    acl clients1 src ...
    acl clients2 src ...
    acl clients3 src ...
    acl some_sites1 dstdomain ...
    acl some_sites2 dstdomain ...

    http_access allow clients1
    http_access allow clients2 some_sites1
    http_access allow clients3 some_sites2
    http_access deny all

When you want to use hostnames/domainnames for the clients, use srcdomain.
If you have a lot of entries per line, put them in a file (one per line)
and use "/dir1/dir2/file" after the acl type (src, dstdomain, etc).

Received on Wed Apr 02 1997 - 15:30:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:56 MST