Jamie Shields wrote:
> acl DENY_ACCESS1 src 192.168.1.?/255.255.255.255
> acl DENY_ACCESS2 src 192.168.5.?/255.255.255.255
> http_access deny DENY_ACCESS1
> http_access deny DENY_ACCESS2
> There is probably a better way of doing this where don't have to do
> an acl for every host, but I don't know it. (Somone?)
Sure. You can list all the hosts in one ACL if you like, and it is
shorter to write /32 than /255.255.255.255... or you can leave the
netmask out completely as long as the last digit is not 0 (squid tries
to be smart about the netmask if none is specified).
acl DENIED_HOSTS src 192.168.1.3 192.168.1.5 192.168.1.58
acl DENIED_HOSTS src 192.168.5.75 192.168.5.86
...
http_access deny DENIED_HOSTS
-- Henrik Nordstrom Squid Hacker -- To unsubscribe, see http://www.squid-cache.org/mailing-lists.htmlReceived on Tue Aug 15 2000 - 15:52:24 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:52 MST