[squid-users] Forcing squid to fail when the whitelist doesn't exist

Alex Rousskov rousskov at measurement-factory.com
Tue Jul 7 18:38:23 UTC 2020

On 7/7/20 1:57 PM, Matthew Macdonald-Wallace wrote:
> On Tue, 7 Jul 2020 at 18:53, Alex Rousskov
>     Meanwhile, try using the newer parameters() syntax instead of abusing
>     double quotes. It should work the way you expect. Here is the
>     corresponding quote from squid.conf.documented:

>     > Squid supports reading configuration option parameters from external
>     > files using the syntax:
>     >     parameters("/path/filename")
>     > For example:
>     >     acl whitelist dstdomain parameters("/etc/squid/whitelist.txt")

> I'll check the version that we're running and see if I can do this.  I
> suspect that due to "enterprise requirements" our version won't be the
> latest, but hopefully it will support this.

AFAICT, all supported Squid versions have parameters(). You will need to
enable configuration_includes_quoted_values in squid.conf to get that
feature. IIRC, that directive was supposed to be on by default, but that
cannot happen until we fix regex support (at least).


More information about the squid-users mailing list