[squid-users] comments in ACL files
Amos Jeffries
squid3 at treenet.co.nz
Mon Nov 4 13:16:34 UTC 2019
On 5/11/19 1:30 am, Matus UHLAR - fantomas wrote:
> Hello,
>
> 1. is it possible to use comments in ACL files?
>
> http://www.squid-cache.org/Doc/config/acl/
> says:
>
> acl aclname acltype "file" ...
>
> When using "file", the file should contain one item per line.
>
> but anything about possible comments, although they seem to be used on the
> net according to web search...
>
> #comment
> 1.2.3.4
It depends on the ACL type. Some have special handling for files with
values, some do not support loading from files.
The rest support files with:
* one ACL value per line, and
* ignoring whitespace prefix and suffix, and
* '#' as comment prefix.
>
> 2. how does squid behave with more items in one line, does it use or ignore
> them?
>
> 1.2.3.4 # comment
>
All of the line (excluding the whitesace prefix/suffix) is one value.
Amos
More information about the squid-users
mailing list