In article <33425D5E.195C@ts.es> 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 0.0.0.0/0.0.0.0
acl clients1 src 1.2.3.0/255.255.255.0 ...
acl clients2 src 1.2.4.0/255.255.255.0 ...
acl clients3 src 1.2.5.0/255.255.255.0 ...
acl some_sites1 dstdomain foo.com ...
acl some_sites2 dstdomain bar.com ...
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).
Arjan
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