Hi,
I use centreon behind a HAProxy.
In the ACL menu I see the HAProxy IP address instead of the client IP Address.In my HAProxy, i’ve configured the frontend as http mode and forward X-Forwarded-For and on the backend too :
frontend web-secure
mode http
http-request set-header X-Forwarded-For %[src]
backend centreon
mode http
#same as forwardfor
http-request set-header X-Forwarded-For %[src]
server hostname 10.X.X.X:80
On the centreon server :
apache2ctl -V
Server version: Apache/2.4.66 (Debian)
Server built: 2025-12-05T18:54:44
Server's Module Magic Number: 20120211:141
Server loaded: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Compiled using: APR 1.7.2, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11
Architecture: 64-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"
cat /etc/apache2/mods-enabled/remoteip.conf
<IfModule mod_remoteip.c>
RemoteIPHeader X-Forwarded-For
# IP HAProxy
RemoteIPTrustedProxy 10.X.X.1 (haproxy IP)
RemoteIPTrustedProxy 10.X.X.2 (haproxy IP)
# Backends locaux FCGI
RemoteIPInternalProxy 127.0.0.1
RemoteIPInternalProxy ::1
# Réseaux privés utilisés par tes clients
RemoteIPTrustedProxy 10.0.0.0/8
RemoteIPTrustedProxy 192.168.0.0/16
</IfModule>
And in the logs we can see the error :
tail -f /var/log/apache2/error.log
[Thu Mar 19 11:10:15.708160 2026] [remoteip:debug] [pid 513813:tid 513813] mod_remoteip.c(679): [client 10.59.41.1:51914] AH01569: RemoteIP: Header X-Forwarded-For value of 10.X.X.1 appears to be a private IP or nonsensical. Ignored
Please, someone could help me?
Thanks in advance,
