Project

General

Profile

Bug #1528

support chained proxies in mod_extforward

Added by glen over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_extforward
Target version:
Start date:
Due date:
% Done:

0%

Missing in 1.5.x:

Description

need something like this for lighttpd:

http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mod_rpaf_degtine.patch

mod_rpaf always uses the last value from the X-Forwarded-For header as
the client IP, breaking when you have several chained proxies (i.e.
Pound in front of Squid in front of Apache).

The attached patch makes it use the last address in the header which is
not in RPAFproxy_ips, falling back to the first one if they are all
known proxies.

1528.patch View - first test (4.47 KB) glen, 2008-01-18 16:49

1528.2.patch View - test2 (4.72 KB) glen, 2008-01-18 16:59

1528.3.patch View - test3 (9.75 KB) glen, 2008-01-19 18:45

1528.4.patch View - test4 -- do not handle "all" in chained proxies (9.78 KB) glen, 2008-01-19 19:06

Associated revisions

Revision cde46f6a (diff)
Added by glen over 8 years ago

- support chained proxies in mod_extforward (#1528)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2061 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by glen over 8 years ago

  • Status changed from New to Assigned

#2 Updated by glen over 8 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to fixed

Committed revision r2061

Also available in: Atom