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

2020-07-09 Thread Matthew Macdonald-Wallace
Awesome, thanks! On Thu, 9 Jul 2020, 19:25 Alex Rousskov, wrote: > On 7/9/20 11:51 AM, Matthew Macdonald-Wallace wrote: > > > Turns out we're running 3.5.x > > > > I have not tested this, but if my quick reading of the latest v3.5 code > > is correct, then the missing parameters() file is treate

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

2020-07-09 Thread Matthew Macdonald-Wallace
On Thu, 9 Jul 2020 at 16:30, Alex Rousskov wrote: > On 7/9/20 2:25 AM, Matthew Macdonald-Wallace wrote: > > > > > 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 h

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

2020-07-09 Thread Alex Rousskov
On 7/9/20 11:51 AM, Matthew Macdonald-Wallace wrote: > > Turns out we're running 3.5.x > > I have not tested this, but if my quick reading of the latest v3.5 code > is correct, then the missing parameters() file is treated as a FATAL > configuration error (in ConfigParser::NextToken). FWIW, Squi

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

2020-07-09 Thread Alex Rousskov
On 7/9/20 2:25 AM, Matthew Macdonald-Wallace wrote: > > > 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 Squ

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

2020-07-09 Thread Matthew Macdonald-Wallace
> > 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_i

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

2020-07-07 Thread Matthew Macdonald-Wallace
On Tue, 7 Jul 2020 at 18:53, Alex Rousskov wrote: > On 7/7/20 10:52 AM, Matthew Macdonald-Wallace wrote: > > > We're re-configuring a squid proxy solution for a client and as part of > > it we made the assumption that squid would fail if we asked it to read a > > whitelist that wasn't present. >

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

2020-07-07 Thread Matthew Macdonald-Wallace
Hey all, We're re-configuring a squid proxy solution for a client and as part of it we made the assumption that squid would fail if we asked it to read a whitelist that wasn't present. We've now discovered that Squid fails to read the file, throws an error in the log ( Error: Cannot open file /et

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

2020-07-07 Thread Alex Rousskov
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: >

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

2020-07-07 Thread Alex Rousskov
On 7/7/20 10:52 AM, Matthew Macdonald-Wallace wrote: > We're re-configuring a squid proxy solution for a client and as part of > it we made the assumption that squid would fail if we asked it to read a > whitelist that wasn't present. > > We've now discovered that Squid fails to read the file, th