Hello, Apache httpd users,
is it possible to tell mod_remoteip to add a X-Forwarded-By header
even for clients from private IP addresses?
If I understand it correctly, mod_remoteip has private address blocks
hardcoded, and uses them for RemoteIPTrustedProxy
(as opposed to RemoteIPInternalProxy).
My use case: we have a large network with clients both on private
and public IP addresses. I would like to use two load-balancers
in front of my Apache httpd cluster, serving bot types of addresses,
and I would like to know which of the load-balancers handled a particular
HTTP request, using "RemoteIPProxiesHeader X-Forwarded-By".
But I cannot do this, because RemoteIPTrustedProxy does not honor
X-Forwaded-For header for private IP addresses, and RemoteIPInternalProxy
does not honor the RemoteIPProxiesHeader directive.
Could this be done in mod_remoteip somehow? If not, it can be an enhancement
request, for example to be able to set up my own (empty) list of private
IP address prefixes.
Thanks,
-Yenya
--
| Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
| https://www.fi.muni.cz/~kas/ GPG: 4096R/A45477D5 |
We all agree on the necessity of compromise. We just can't agree on
when it's necessary to compromise. --Larry Wall
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]