Date: Mon, 23 Dec 2002 15:49:04 -0500 From: "David S. Jackson" <deepbsd@earthlink.net> To: freebsd-questions@freebsd.org Subject: squidGuard problem: %n and %i empty Message-ID: <20021223204904.GA28918@sylvester.dsj.net>
next in thread | raw e-mail | index | archive | help
Hi, The manual of the squidGuard forwarder/redirector says: squidGuard can do runtime string substitutions in the redirectors. Therefor the character "%" has special meaning in the redirector URLs: ...snip... %a is replaced with IP address of the client. %n is replaced with the domainname of the client or "unknown" if not available. %i is replaced with the user ID (RFC931) or "unknown" if not available. ...snip... However, when I call a cgi with this redirector command in squidguard.conf: ...snip... http://192.168.0.10/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u ...snip... what actually gets to the cgi on the above IP number is: ...snip... 192.168.0.110 - - [23/Dec/2002:10:33:42 -0500] "GET /cgi-bin/squidGuard.cgi?clientaddr=192.168.0.101&clientname=&clientuser=&clientgroup=net-clients&targetgroup=adult&url=http://www.playboy.com/ HTTP/1.0" 403 2469 ...snip... As you can see, the %i and %n have empty values. Does this %i and %n info never make it to squidGuard because squid removes it? Is there a squid configuration option I should reset? For my testing purposes there are no other proxies chained together. Otherwise, any input would be welcome. TIA! -- David S. Jackson dsj@dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Being Ymor's right-hand man was like being gently flogged to death with scented bootlaces. -- Terry Pratchett, "The Colour of Magic" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021223204904.GA28918>