Project

General

Profile

Actions

Bug #1528

closed

support chained proxies in mod_extforward

Added by glen over 16 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_extforward
Target version:
ASK QUESTIONS IN Forums:

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.


Files

1528.patch (4.47 KB) 1528.patch first test glen, 2008-01-18 16:49
1528.2.patch (4.72 KB) 1528.2.patch test2 glen, 2008-01-18 16:59
1528.3.patch (9.75 KB) 1528.3.patch test3 glen, 2008-01-19 18:45
1528.4.patch (9.78 KB) 1528.4.patch test4 -- do not handle "all" in chained proxies glen, 2008-01-19 19:06
Actions #1

Updated by glen over 16 years ago

  • Status changed from New to Assigned
Actions #2

Updated by glen over 16 years ago

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

Committed revision r2061

Actions #3

Updated by glen over 3 years ago

r2061 corresponds to git cde46f6a3d448b5774108b147fbadb03581ce3a2

Actions

Also available in: Atom