Hi ,
1) Your apache log shows that SquidGuard/squid correctly sends the IP
address to apache. So the problem is probably with your squidGuard.cgi
script. Try using "&clientaddr=%a" instead of "&clientaddress=%a".
2) In your redirect statement you wrote : &clientname=%ns . You should have
&clientname=%n (remove the trailing "s"). Your apache log shows this field
is empty though.
HTH,
Rémi
> -----Message d'origine-----
> De : OKRG [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 19 août 2005 13:45
> À : [email protected]
> Objet : Squidguard.cgi problem
>
>
> I have a following problem.
> I use a standard redirect statement such as
>
> redirect
> http://10.200.1.1:8080/cgi-bin/squidGuard.cgi?clientaddress=%a
&clientname=%ns&clientident=%i&clientgroup=%s
> &targetgroup=%t&url=%u
>
> All works fine. But I have invalid additional information:
>
> Additional information:
> Client address =
> Client name = s
> Client user =
> Client group = my
> URL = http://www.playboy.com/
> Target group = porn
>
> My questions are:
> 1. Why I get an unknown client address?
> 2. What does it mean Client name = s ?
>
> Apache log give me following string:
>
> 10.200.1.1 - - [19/Aug/2005:13:54:16 +0300]
> "GET
> /cgi-bin/squidGuard.cgi?clientaddress=10.200.1.2&clientname=s&
> clientident=&clientgroup=my&targetgroup=porn&url=http://www.pl
> ayboy.com/favicon.ico
> HTTP/1.0" 403 2489 "-" "Mozilla/5.0 (X11; U; FreeBSD i386;
> uk-UA; rv:1.7.6) Gecko/20050415
> Firefox/1.0.2"
>
>