Apache httpd mod_remoteip does not work correctly with internal IPs
Issue
- We have configured
mod_remoteipcorrectly as per How to use mod_remoteip to get client IP address when Apache httpd is behind a proxy server or load balancer . But, when accessing the site from the intranet, the IP of the proxy (not the IP of the client) is being logged. - The Apache httpd is not logging the true client IP address behind a load balancer. Instead, it logs the load balancer's IP address (192.168.100.1) in the access logs.
Environment
- Red Hat Enterprise Linux (RHEL)
- 7.x,8.x,9.x,10.x
- Red Hat Software Collections (RHSCL)
- 2.0+
- Red Hat JBoss Web Server (JWS)
- 3.0+
- JBoss Core Services (JBCS) Apache httpd
- 2.4.23+
- Apache httpd
- 2.4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.