Hello,

It would be nice if in mod_remoteip, you could specify a list of
headers and not just one.

eg:

RemoteIPHeader X-Forwarded-For, X-Forward
RemoteIPTrustedProxy 10.0.2.0/24
RemoteIPTrustedProxy gateway.localdomain

Headers would preferably to be checked for in the provided order. Use case is :

1. If there is X-Forwarded-For header use it (as the traffic is
through a forward proxy, such as squid - the value in X-Forward is the
proxy IP)
2. Otherwise if there is X-Forward header use it (traffic is direct,
but via a SNAT-ing content switch - X-Forward records the original
source address)
3. Otherwise use the connection's REMOTE_ADDR (traffic is direct - and
not via a SNAT-ing content switch)

In the current mod_remoteip, you can only pick one header - the
different headers are created by different devices.

Cheers
Brett

--
The only thing that interferes with my learning is my education.

Albert Einstein

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to