Mehmet ÇELiK wrote:
> 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 ????
>
As per usual, the easiest fix is to re-write the web app properly.
The REMOTE_ADDR is taken by PHP from the network layer below everything.
Otherwise you will have to patch your kernel and use the tproxy feature
of Squid.
Amos
-- Please be using Current Stable Squid 2.7.STABLE5 or 3.0.STABLE11 Current Beta Squid 3.1.0.3Received on Wed Jan 07 2009 - 17:43:17 MST
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 12:00:02 MST