LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > X-Forwarded-for bug

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2005, 03:36 PM
tgabi tgabi is offline
New Member
 
Join Date: May 2005
Posts: 6
Default X-Forwarded-for bug

Hi,
it seems there's a problem in X-Forwarded-for processing. I get some strange logs like:

192.168.2.230

for something like

192.168.2.230, 58.11.73.85, 69.90.60.149

Any ideas ?
Reply With Quote
  #2  
Old 06-02-2005, 10:18 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Would you mind explaining it more clearly? :-)

What log do you refer to? What is the correct value, what is not?

Thanks.
Reply With Quote
  #3  
Old 06-02-2005, 11:47 AM
tgabi tgabi is offline
New Member
 
Join Date: May 2005
Posts: 6
Quote:
Originally Posted by mistwang
Would you mind explaining it more clearly? :-)

What log do you refer to? What is the correct value, what is not?

Thanks.
Ok, the logs are for the server behind LiteSpeed (dynamic content). When the request is passed from LiteSpeed the X-Forwarded-For header is truncated (as shown above). When the request is passed by apache (in fron of the same server) the logs show the full header.
Both values shown are from the same client in Internet, so the second log value is the correct one.
Reply With Quote
  #4  
Old 06-21-2005, 08:53 AM
tgabi tgabi is offline
New Member
 
Join Date: May 2005
Posts: 6
Any news on this issue yet ? I cannot use LiteSpeed unless this flag is set right.
Reply With Quote
  #5  
Old 06-21-2005, 10:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
We had investigated this issue.

When X-Forwarded-for header exists in request header, Apache will append the IP of the proxy server where the request comes from when it rebuild the proxy request header.

LiteSpeed reuses the request header received, do not rebuild the whole header when forward the request. So, when X-Forwarded-For exists in original request header, LiteSpeed will not change it. The IP in X-Forwarded-For is where the request originated from.

We can add some code to add a new X-Forwarded-For header which includes all IPs that the request had traveled, probably in 2.1 release. Don't have time to deal with it yet.
Reply With Quote
  #6  
Old 07-26-2005, 10:03 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
This issue should be solved in 2.1RC2, please try it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:32 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.