Forum Discussion
F5 IIS 10 Original c-ip - x-forwarded-for
Greetings everyone, We have a F5 LB who is handling all the load for our web servers. But there is a problem when reading the IIS logs for the original client ip ( we have SNAT that shows the virtual IP instead of client ip).
So far i have only found that IIS 10 supports enhanced logging and you can set your own input for x-forwarded-for. My question is, if we enable x-forwarding-for in the F5 - Services - HTTP and add the enhanced loggin for IIS10 custom field - can we get the original client ip ?
Sorry if this is posted before but i couldn't find the question.
Thanks forward. Z.
- Daniel_Varela
Employee
That setting actually does that...insert the X-Forwarded-for header with the original IP so it will be available to your IIS server.
- amintej
Cirrus
In the next article is described how to add X-Forwarder-For Header to the site logs:
https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-85/enhanced-logging-for-iis85
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