[squid-users] squidGuard configuration test - echo test

Amos Jeffries squid3 at treenet.co.nz
Mon Jun 8 07:39:08 UTC 2015


On 8/06/2015 5:20 a.m., Jose Julian Buda wrote:
> On 2015-06-07 12:15, Helmut Hullen wrote:
>> Hallo, Marcus,
>>
>> Du meintest am 07.06.15:
>>
>>>> Hi, i have installed squidGuard 1.5 on Debian Jessie and i need an
>>>> user based filter, made the src/dest/acl setting and then test with
>>>> :
>>>>
>>>> echo "http://www.testsite.com 192.168.0.82/ someuserfromauth GET" |
>>>> squidGuard -d
>>
>>> The URL director interface was changed with Squid 3.4, see also
>>> http://wiki.squid-cache.org/Features/RedirectorsThe latest version of
>>> squidguard is 1.5 beta from 2010 and squidGuard does not support the
>>> new interface of Squid.
>>
>> Sure?
>> I run squid-3.4.10 and squidGuard-1.5beta on many machines, without
>> having changed the "Redirector" line in "/etc/squid/squid.conf".
>>
> 
> 
> Thank you Helmut for this information.
> I guess squidGuard 1.5.4 should work on DebianStable's Squid3.4
> So anything about the "ERR" answer for this test?

That wiki page Marcus references you to documents it in detail.


> 
> echo "http://www.testsite.com 192.168.0.82/ someuserfromauth GET" |
> squidGuard -d
> 
> ...
> 2015-06-07 00:08:44 [3359] INFO: squidGuard 1.5 started (1433646524.285)
> 2015-06-07 00:08:44 [3359] INFO: squidGuard ready for requests
> (1433646524.286)
> ERR
> 2015-06-07 00:08:44 [3359] INFO: squidGuard stopped (1433646524.287
> ...
> 
> is this what is expected for a passing request?

>From that wiki page:
"
result
  One of the result codes:

    OK - Success. A new URL is presented.

    ERR - Success. No action for this URL.

    BH - Failure. The helper encountered a problem.

  {i} the result field is only accepted by Squid-3.4 and newer.
"

In other words, SG is working and telling Squid/you not to do anything
with the URL you gave it.

If you have rules setup that should be making it an OK with URL output
its probably because of ... the URL given to SG is not valid (missing
path), also the FQDN, myip=, and myport= fields are missing.

Amos


More information about the squid-users mailing list