Re: [squid-users] reading external acl from squid.conf

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 17 Aug 2011 11:30:39 +1200

 On Tue, 16 Aug 2011 13:18:49 -0400, alexus wrote:
> is there a way to have this
>
> acl bk src XX.XXX.XX.XX/32
> acl bk src XXX.XX.XXX.XX/32
>
> in a external file and have squid.conf reference to it?

 in squid.conf:

 acl bk src "/etc/squid/acls-file"

 then in /etc/squid/acls-file one ACL value per line:

 XX.XXX.XX.XX/32
 XX.XXX.XXX.XX/32

 Two things to note:
  * The file is only loaded on reconfigure and startup.
  If you need something more dynamic or real-time, use external_acl_type
 to run a script.

  * /32 is not needed, will be ignored by Squid. There is also A-B style
 ranges accepted for odd ranges.

 Amos
Received on Tue Aug 16 2011 - 23:30:43 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 17 2011 - 12:00:02 MDT