Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev
Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI
 

Index | Next | Previous | View Flat


cherokee at googlecode

Sep 22, 2010, 5:36 AM


Views: 532
Permalink
Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI

Status: New
Owner: ----

New issue 997 by r...@ayumi.de: RFE: X-Forwarded-For header as REMOTE_ADDR
with FastCGI
http://code.google.com/p/cherokee/issues/detail?id=997

What steps will reproduce the problem?
1. Set up a vhost with fcgi handler (e.g. PHP wizard)
2. Set up logging so it logs the X-Real-IP (XRI) header as client IP
3. Set up the fcgi handler so it sets the X-Real-IP (XRI) header as
REMOTE_ADDR
4. Make requests with X-Forwarded-For (XFF) header

What is the expected output? What do you see instead?
Seen:
logged client IP = XFF header
REMOTE_ADDR = proxy IP

Expected:
logged client IP = XFF header
REMOTE_ADDR = XFF header

What version of the product are you using? On what operating system?
1.0.8 Debian squeeze/testing

Please provide any additional information below.
It is possible to set the logging so it uses the XRI header. This also
values the XFF header.

The FastCGI handler also allows using the XRI header as REMOTE_ADDR.
However, opposing to the logging behavior, it does NOT respect the XFF
header.

That is not actually a bug, since the admin mentions the XFF header only
for the logging part. But it's well worth being irritated about it.

The fix seems easy (see attached patch), but I didn't have time to test it
yet.

Attachments:
cherokee_fcgi_xff.patch 671 bytes

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Subject User Time
Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI cherokee at googlecode Sep 22, 2010, 5:36 AM
    Re: Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI cherokee at googlecode Sep 22, 2010, 5:41 AM
    Re: Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI cherokee at googlecode Sep 22, 2010, 7:33 AM
    Re: Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI cherokee at googlecode Oct 19, 2010, 2:20 AM
    Re: Issue 997 in cherokee: RFE: X-Forwarded-For header as REMOTE_ADDR with FastCGI cherokee at googlecode Sep 16, 2011, 12:44 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.