tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50453] Multiple X-Forwarded-For headers not handled by RemoteIP valve
Date Fri, 10 Dec 2010 21:48:09 GMT

--- Comment #6 from Jim Riggs <> 2010-12-10 16:48:05 EST ---
(In reply to comment #4)
> So, should the RemoteIPValve/Filter should be looking at the first
> X-Forwarded-For (A) or the last X-Forwarded-For (E) address?

Chris -

It should be looking at them as if they were combined in a single
comma-separated list and evaluating them from right-to-left.  As Mark said,
regardless of how the header(s) are received, it should be treated as
"X-Forwarded-For: A, B, C, D, E" and RemoteIP should "trust" them in the order
E - D - C - B - A.  I will make sure that the switch to getHeaders() in my
patch does this.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message