Forum Discussion
Aniket_129589
Nimbostratus
Jul 09, 2013Get 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
Employee
Jul 25, 2013First, inserting the X-Forwarded-For header is just ONE method for getting the client IP to the server if SNATting. There are definitely other reasons to enable it and other ways to do it. In any case, just to be clear, you only need one of the above techniques: XFF header or iRule. If you use the iRule, based on the example above you'd be looking for the HTTP_CLIENTIP header within your ASP.NET pages. If you're still not seeing the header, or any header with the client IP, the first thing I would do is capture the traffic between the BIG-IP and server using TCPDUMP. Example:
tcpdump -lnni 0.0 -Xs0 [additional filters]
The -Xs0 flag will show you the contents of the packets (I'm assuming the payload is not encrypted) coming from the BIG-IP, so you want to look for the XFF or CLIENTIP header (whichever method you're using) to verify if it's actually being sent. If you see the header in the payload, but not on the server, then either something else is stripping it out along the way, or your ASP.NET environment is not configured properly to handle it. I would start there.
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