Forum Discussion
sukru_isik_8872
Nimbostratus
Jul 21, 2013x forwarded problem
I have an apache server behind f5 VIP.I m using SNAT automap .To see client s real ip on server ,I enabled "x-forwarded for " option in http profile.
in access logs,I can see client's real ip; but in error logs,I see f5 self ip.how can I see clients real ip in error logs?
4 Replies
- marco_octavian_
Nimbostratus
Enabling the x-forwarded-for in the http profile is only part of the equation. You also have to make changes on the server side for the server to insert the information in the logs accordingly. Google for "apached and x-forwarded-for" as an example. - Brad_Roan_12051
Nimbostratus
I'm not sure about Apache, but I know that there's an ISAPI filter you have to install/config in IIS to get the forwarded-for IP to appear in the logs. - nathe
Cirrocumulus
This article should help:
https://devcentral.f5.com/blogs/us/using-quotx-forwarded-for-quot-in-apache-or-php.UfFOOdJky-o
Rgds
N - Kalpesh_48932
Nimbostratus
Can you paste here VIP and pool config?
on which port Apache servers listening to traffic?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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