From owner-freebsd-isp@FreeBSD.ORG Thu Jun 16 14:23:45 2005 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ABC116A41C for ; Thu, 16 Jun 2005 14:23:45 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDF6A43D49 for ; Thu, 16 Jun 2005 14:23:44 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so501241wra for ; Thu, 16 Jun 2005 07:23:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SAgBPv2podiY6p+laHkj0xGJI5szUSO10ctiGQNWtNHFvkprdq7r/1PuaLva6V36maOLe3Exkp57m1qqUlUHkdj0sh+L79D5PT/UEVi6jHhTDkj+Cc1BDE0XlBsUap32qZQXYpPzoNx3TIShQtLwXCXvXTN/KZKuOjYccvwUtU8= Received: by 10.54.5.50 with SMTP id 50mr644009wre; Thu, 16 Jun 2005 07:23:43 -0700 (PDT) Received: by 10.54.66.16 with HTTP; Thu, 16 Jun 2005 07:23:43 -0700 (PDT) Message-ID: Date: Thu, 16 Jun 2005 17:23:43 +0300 From: Abu Khaled To: Remy de Ruysscher In-Reply-To: <42B16C3A.8040008@unix-asp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050616120019.BFAEB16A421@hub.freebsd.org> <42B16C3A.8040008@unix-asp.com> Cc: freebsd-isp@freebsd.org Subject: Re: freebsd-isp Digest, Vol 117, Issue 4 X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Abu Khaled List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2005 14:23:45 -0000 On 6/16/05, Remy de Ruysscher wrote: > Hi there, >=20 > I'm struggeling with the setup of Reverse Proxy (Squid) for our > serverfarm. Is it possible to preserve the orginal IP address > in the logs on the destinator webserver (Apache access-logs). If not all > connections are comming from the Squid Proxy. >=20 > If seen a number of patches for Squid, but haven't dived into it yet. > Any tips on this matter are most welcome ;). >=20 > Regards, >=20 > Remy. >=20 >=20 >=20 I found this sometime ago while trying to configure my apache log files. Check apache mod_log_config documentation. http://httpd.apache.org/docs/mod/mod_log_config.html Inserting X-Forwarded-For for apache access-logs might help. # start LogFormat "%v %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b" common CustomLog logs/access_log common # end --=20 Kind regards Abu Khaled