[squid-users] acl question

From: M.K. tenNapel <[email protected]>
Date: Tue, 20 Dec 2005 12:17:00 +0100

Hi,

My boss asked me to put all network-IP's into certain groeps
and that determine the acces each group should allowed to have.
The problem is that this list is rather large. I could just place
all Ip's on 1 line in /etc/squid/squid.conf, like this:

acl Group_MaxAllowed src 192.168.1.5 192.168.1.6 192.168.1.7 etc etc

but this would make myconfiguration file messy and difficult to
maintain. So I tried this:

acl Group_MaxAllowed src 192.168.1.5 #Da Boss
                        192.168.1.6 #My IP
                        192.168.1.7 # Some other IP

But squid did not like that. I even tried to put all the IP that should
be in that specific group into a textfile and put something like this in
squid.conf:

acl Group_MaxAllowed url_regex "/path/to/ip-list"
acl Group_MaxAllowed src_regex "/path/to/ip-list"

But Squid didn't like that either. So, could someone give me some
examples to do this as efficiend and nice as possible?

Thanks a lot! :)

-- 
GNU is my system and Linux is one of it's kernels.
Received on Tue Dec 20 2005 - 04:17:08 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST