Forum Discussion
jasonralph_4089
Nimbostratus
Dec 08, 2009Capture IP of Client Traffic
Hello,
I am searching for advise on how I can view the IP of the client that generates the http request. When I run apache server-status on our web servers I am seeing the F5 virtual IP which ...
appz_guy_5833
Nimbostratus
Jan 08, 2010We actually needed to do the same thing: get the client ip.
However, we had a non-HTTP application - basically a custom TCP application. Therefore, we could not use the solution of adding something to the HTTP headers.
We had to do the following in order to get the client ip address to our custom TCP application:
1. Create a IP forwarding virtual server..you can use this link here to see the details of how: https://support.f5.com/kb/en-us/solutions/public/7000/500/sol7595.html -- you can do all of that configuration via the GUI.
In the GUI you would go to "Local Traffic" -> "Virtual Servers" -> "Profiles"
Click on "Protocol" -> "Fast L4"
Create a new custom profile with the parent being "Fast L4"
Make sure "Loose Initiation" is checked - you will need to make sure custom is checked.
Make sure "Loose Close" is checked - you will need to make sure custom is checked.
Create a new virtual server
For the type pick "Forwarding (IP)"
For the Destination click on "Network" and enter 0.0.0.0 for the address and 0.0.0.0 for the mask
For the service port pick "All Ports"
In the protocol profile, pick the custom "Fast L4" profile you created above.
2. Set the default gateway of the web server (in our case, the application server) to point to the IP address of the BIG-IP.
Once we did that we saw the client ip address correctly on our application server.
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