X-Forwarded-By from private addresses?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	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: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux