[squid-users] Correct Syntax for ACL?
Serge Fonville
serge.fonville at gmail.com
Wed May 27 20:18:56 UTC 2015
Hi,
how does squid distinquish between a file containing rules
> e.g. acl acl-file url_regex -i "/etc/url-acl.squid"
> or the rule itself
> e.g. acl acl-rule url_regex -i "\.exe$"
> with the same acl-type?
>
>From http://www.squid-cache.org/Doc/config/acl/
Every access list definition must begin with an aclname and acltype,
followed by either type-specific arguments or a quoted filename that
they are read from.
Seems to suggest that using "s means the argument is a file.
HTH
Kind regards/met vriendelijke groet,
Serge Fonville
http://www.sergefonville.nl
2015-05-27 22:11 GMT+02:00 Hussam Al-Tayeb <hussam at visp.net.lb>:
> On Wednesday 27 May 2015 22:03:14 Walter H. wrote:
> > Hello,
> >
> > would this be the correct syntax:
> >
> > acl crl-file url_regex -i \.crl$
> >
> > or need it to be
> >
> > acl crl-file url_regex -i "\.crl$"
> >
> > how does squid distinquish between a file containing rules
> > e.g. acl acl-file url_regex -i "/etc/url-acl.squid"
> > or the rule itself
> > e.g. acl acl-rule url_regex -i "\.exe$"
> > with the same acl-type?
> >
> > Thanks,
> > Walter
>
> This is what I am using right now.
>
> acl crlfiletype rep_mime_type application/x-pkcs7-crl
> store_miss deny crlfiletype
> acl crl url_regex .crl$
> cache deny crl
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150527/1644ff30/attachment-0001.html>
More information about the squid-users
mailing list