Re: [squid-users] HTTP Header

From: Mehmet ÇELiK <root_at_justunix.org>
Date: Wed, 7 Jan 2009 16:56:03 +0200

Hello,

I think you understand me wrong or you did not read all of my mail.
The problem is that:
I want to change the place of the value at X_FORWARDED_FOR.with REMOTE ADDR.
I mean,
when web server looked at to HEADER, It can see the Client IP Address, It
does not see REVERSE. And I want to make this activite as REMOTE_ADDR.

I want to see the informations as the below:

PHP Code:
<?php
echo "X_Forward = ".$_SERVER['HTTP_X_FORWARDED_FOR'];
echo "<br>Remote_Addr = ".$_SERVER['REMOTE_ADDR'];
?>

Web Servers says that:
X-Forwarded-For = Client IP Address
Remote Address = Reverse Proxy IP Address

When I change it:

Web Servers says that:
X-Forwarded-For = NULL
Remote Address = Client IP Address

It's possible ????

----- Original Message -----
From: "Ralf Peng" <ralf.peng_at_gmail.com>
To: "Mehmet ÇELiK" <root_at_justunix.org>
Cc: <squid-users_at_squid-cache.org>
Sent: Wednesday, January 07, 2009 2:06 PM
Subject: Re: [squid-users] HTTP Header

> 2009/1/7 Mehmet ÇELiK <root_at_justunix.org>:
>> Hi all,
>>
>> I am using Squid as Reverse Proxy for my Web Servers. Client IP Address
>> is
>> directing to Web Servers with X_FORWARDED_FOR. But, I want to write
>> Client
>> IP Address to Remote_Address..
>>
>
> Yes you can.
> If I remember that correctly, you should be able to modify
> src/HttpHeader.cc and change the string of 'X_FORWARDED_FOR' to what
> you wanted then recomplie and install Squid.
>
> Ralf.
>

--------------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.3/1879 - Release Date: 06.01.2009
17:16
Received on Wed Jan 07 2009 - 14:56:28 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 12:00:02 MST