feature request for mod_remoteip

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


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


RemoteIPHeader X-Forwarded-For, X-Forward
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.


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

Albert Einstein

To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

Add to Google Powered by Linux