Forum Discussion
Aniket_129589
Jul 09, 2013Nimbostratus
Get ClientIP Address Behind LoadBalancer
Hi,
I am facing an issue to capture the actual IP address of the customers. The Web application is developed in ASP.NET 2.0 version (IIS version is 6.0) and it is hosted in Windows 2003 server b...
Kevin_Stewart
Jul 09, 2013Employee
You must enable the X-Forwarded-For header in the HTTP profile (Insert X-Forwarded-For) for the LTM to auto-inject the header. Also, depending on how you have the virtual server configured, you may either be seeing the BIG-IP's self-IP (SNAT enabled) address or the client's IP (SNAT disabled). If you require SNAT then you can:
1) Enable the HTTP profile's X-Forwarded-For header option, or
2) Create a simple iRule to push the client's true source as an arbitrary HTTP header:
when HTTP_REQUEST {
HTTP::header insert CLIENTIP [IP::client_addr]
}
You should then be able to see the client's IP in the incoming "HTTP_CLIENTIP" header.
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