Search squid archive

Re: reading external acl from squid.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux