Welcome! Log In Create A New Profile

Advanced

Re: HTTP_X_FORWARDED_FOR being truncated/prefixed with a comma and no IP for some requests

Maxim Dounin
September 19, 2013 06:38AM
Hello!

On Wed, Sep 18, 2013 at 07:50:13PM -0400, scianos wrote:

> Hi -
>
> I have confirmed an unusual situation in which it appears the leading
> address is being stripped from x-forwarded-for headers passed on to
> downstream hosts (running Apache in this case) on very specific requests. I
> haven't been able to determine a pattern that triggers the event.
>
> Has anyone else experienced this issue/seen anything similar? I've been
> managing nginx-based services for some time and this is the first event in
> which I've seen this behavior; I am at a loss.
>
> Kind regards,
> Stu
>
> Technical info:
> Example:
> HTTP_X_FORWARDED_FOR=, 10.2.8.141 SERVER_ADDR=10.5.7.112
> REMOTE_ADDR=10.4.7.114
> - note the leading "," on the x_forwarded_for header and the missing leading
> IP.

This can easily happen if an original request contains an empty
X-Forwarded-For header. See no problem here.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTP_X_FORWARDED_FOR being truncated/prefixed with a comma and no IP for some requests

scianos September 18, 2013 07:50PM

Re: HTTP_X_FORWARDED_FOR being truncated/prefixed with a comma and no IP for some requests

Maxim Dounin September 19, 2013 06:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready