Forum Discussion
traffic coming over APM XforwardedIP not being recorded by IIS
Environment :
- IIS windows host : Windows 2008R2 server
- f5 : 12.1
- Basic virtual server : http only - one server in the pool
Handling a strange issue. virtual server has x-forwarding http profile turned on. It records all x-forwarded IPs expect for the traffic originating from VPN clients who are getting i.e. 192.168.10.0 IP range.
Capture on the windows host clearly suggests that X-forwarded stamp is being passed through but IIS logs doesnt have any reference. IIS logs only records the selfIP of the f5 and not X-forwarded stamp. IIS logs configs are set to capture everything.
I tried installing f5 recommended isapi filter - no effect.
Any pointers will be appreciated.
1 Reply
Hi Jim,
IIS has a very poor support for X-Forwarded-For headers... 😞
I usually tend to write the original client IP into an additional cookie (via
) and collect those information by turning on IIS cookie logging. Its much easier, doesn require any bits'n'bytes on your servers and may already satisfy your needs... 😉HTTP::cookie insert name "OrigIP" value [IP::client_addr]If you're still looking for a native
support, then take a look to the following blog site. The site outlines and compares different techniques which are more or less supported/maintained by Microsoft or F5.X-Forwarded-Forhttps://blogs.iis.net/deanc/iis7-8-logging-the-real-client-ip-in-the-iis-hit-logs
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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