Re: Re: Is this possible ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 20, 2010 at 3:24 PM,  <export@xxxxxxx> wrote:
>  Let’s suppose this configuration
>
>  |Server1| <----- |Server2| <----- |Client|
>
>  A client sends a request that starts a script on Server2.The script ( running on server2)
>  will download a webpage from Server1.
>  Is it possible to record Client’s IP on Server1, instead of Server2’s IP? In other words,
>  Server1 will think the request for downloading is directly from Client.
>  That is Server2’s IP will be “invisible” for Server1
>
>  Is this possbile?
>
>  Thanks
>  J.
>

Sure, with a bit of extra work. You need to update the request on
server1 to overwrite the IP address with the client's IP address. The
simplest way to do this is with something like mod_rpaf2 (3rd party
module), or mod_remoteip (currently in trunk).
You will also need to pass the client IP address in the request
headers sent from server2 to server1 - how you do this will depend on
how server2 will 'download' the webpage from server1. Both mod_rpaf
and mod_remoteip allow you to configure the header that it reads the
client IP from.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux