Re: [squid-users] Acl List Order

From: 'Christoph Haas' <email@dont-contact.us>
Date: Thu, 8 Sep 2005 10:47:15 +0200

On Thu, Sep 08, 2005 at 05:55:48PM +0930, Mark Day wrote:
> How could I extend the following lines to allow groups of IP's
>
> acl restrictedusers src 192.168.100.127/255.255.255.255
> acl unrestrictedusers src 192.168.100.45/255.255.255.255

A bit complicated. This does the same:

acl restrictedusers src 192.168.100.127
acl unrestrictedusers src 192.168.100.45

If you want multiple IPs you can either put them on the same line like
this:

acl group-of-ips src 192.168.100.126 192.168.100.129 192.168.100.5

...or use external files...

acl group-of-ips src "/etc/squid/ips.txt"

And create that file with one IP address or network per line.

See also the documentation at www.squid-cache.org about ACLs
or my Wiki entry at workaround.org/moin/HowSquidAclsWork

 Christoph

-- 
~
~
~
".signature" [Modified] 3 lines --100%--                3,41         All
Received on Thu Sep 08 2005 - 02:47:24 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:03 MDT