From owner-freebsd-questions Mon Dec 23 12:49:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3E5037B417 for ; Mon, 23 Dec 2002 12:49:21 -0800 (PST) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 890AD43EEC for ; Mon, 23 Dec 2002 12:49:21 -0800 (PST) (envelope-from deepbsd@earthlink.net) Received: from user-119a2km.biz.mindspring.com ([66.149.10.150] helo=sylvester.dsj.net) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18QZVa-0003Mr-00 for freebsd-questions@freebsd.org; Mon, 23 Dec 2002 12:49:06 -0800 Received: from sylvester.dsj.net (dsj@localhost [127.0.0.1]) by sylvester.dsj.net (8.12.3/8.12.3/Debian -4) with ESMTP id gBNKn5K4028968 for ; Mon, 23 Dec 2002 15:49:05 -0500 Received: (from dsj@localhost) by sylvester.dsj.net (8.12.3/8.12.3/Debian -4) id gBNKn4u8028967 for freebsd-questions@freebsd.org; Mon, 23 Dec 2002 15:49:04 -0500 X-Authentication-Warning: sylvester.dsj.net: dsj set sender to deepbsd@earthlink.net using -f Date: Mon, 23 Dec 2002 15:49:04 -0500 From: "David S. Jackson" To: freebsd-questions@freebsd.org Subject: squidGuard problem: %n and %i empty Message-ID: <20021223204904.GA28918@sylvester.dsj.net> Reply-To: "David S. Jackson" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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