Forum Discussion
Arie
Altostratus
Sep 14, 2006IIS logs show LB IP address for all requests
Our IIS logs are showing the LB's IP address for all requests instead of the clients' IP addresses.
Any idea how to fix this?
paul_adomeit_70
Nimbostratus
Sep 28, 2006Setting x-forwarded-for is the easy part. There is a fantastic ISAPI custom log filter in the downloads section that causes the IIS server to log the value in the x-forwarded-for as the client IP address in the web logs. We use this so all our web log processing tools still work and for trouble shooting.
For Apache, there are plenty of examples. When the request comes in, set a variable if the header exists. Then, set two log formats (one where x-forwarded-for is substituted for the requesting IP) and select the log statment based on the state of the variable.
For SunOne, you have to enable advanced logging but there's no way to selectivly log the real client IP presented if there's no x-forwarded-for. We just ran the logs through some processing to get the real client IP address in the right spot after the fact.
-p
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