Forum Discussion
Comex_17260
Dec 15, 2011Nimbostratus
Preserve client ip (Stealth LB)
Hello Everybody,
I made a search through discussions to see if this subject is covered, and apparently it is not.
I have several applications running on my servers behind my Big-IP 10.2.x LB, and before they were behind LB, they were reading and using client's IP in several manners.
I know i can use x-forwarding-for or any other fields in http header to pass the client ip to the server, but I cannot change my software to adapt the new system.
What I have to do is, if it is possible, make the LB stealth and the server will see the real client's IP address rather than LB's IP address.
Is it possible to assign a new value to client_addr in any context?
P.S. how the client ip address is read in the application is as follows:
---------------------------------------------------------
Java
getRemoteAddr
Returns the Internet Protocol (IP) address of the client or last proxy that
sent the request. For HTTP servlets, same as the value of the CGI variable
REMOTE_ADDR.
Returns:
a String containing the IP address of the client that sent the request
---------------------------------------------------------
Thanks in advance,
-Comex
- hooleylistCirrostratusHi Comex,
- Comex_17260NimbostratusHey Hoolio,
- nitassEmployeeif you cannot change code, i think server has to set f5 as default gateway. then you will be able to disable snat, so server will see real client ip address.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects