Forum Discussion
Apache mod_status "server-status" not showing Client IP
Thanks.
- Colin_Walker_12Historic F5 AccountThe LTM shouldn't be inserting its IP address unless it's being told to. Do you have snat turned on? If so, then you could selectively disable it for requests going to /server-status.
when HTTP_REQUEST { if {[HTTP::uri] eq "/server-status"} { snat none } }
- Colin_Walker_12Historic F5 AccountAlthough keep in mind that could have awful results if your infrastructure demands the snat be in place. I realized I should mention this as I was hitting the post button.
- hooleylistCirrostratusOr could you modify log_status to parse the XFF value instead of the IP packet header? I did a quick search online but didn't find anything obvious.
- Che_Wang_86502NimbostratusHi Colin,
- Grigory_Eremen1Historic F5 AccountChe,
- HamishCirrocumulusThe monitors will run with the source address of the F5 device itself.
- L4L7_53191NimbostratusNice one Hamish I bet you're dead on the money with this one.
- Michael_YatesNimbostratusIf you are running an Active/Standby Pair you will see the health checks from both devices since both have to be aware of availablity status in case of a Failover.
- Dave_103774Nimbostratus
I am having the same issue. Use the F5 to proxy (and soon load balance) for a server. When I goto the /server-status page client IP shows the F5 LTM. Now to the comment about making an exception, you are probably not seeing the question correctly. /server-status shows all the client IPs of all the connections from around the world (around 50-100 reqs/min for me on a slow time) all coming from F5. Now I incorporated the remoteip module on apache and setting the F5 IP as a proxy and the X-Forwaded-For in the configuration, my /var/log/vhost_access.log is now showing the correct IP without having to use the %{X-Forwarded-For}i LogFormat. So that is all working, however for some reason the /server-status continues to show the IP address of the F5. Interesting though, every once in a while it is showing 1 or 2 IPs that are the real client IPs, but in general the reported IP is still F5.
- HamishCirrocumulus
Hi Dave... My first reaction would be to ask if you'd seen my comment from 2011. Even on high volume sites, a large percentage of traffic is the health checks from your BigIP's.
What's the reported URI on those clients? And as you really are using SNAT, have you checked that it's not an issue with the mod_status module and remoteip?
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