Welcome! Log In Create A New Profile

Advanced

Re: Can real_ip_header's behavior be altered slightly?

December 29, 2009 07:18PM
On Tue, Dec 29, 2009 at 4:07 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> The last one is the address added by last proxy.  As we trust last
> proxy - we use address added by it.
>
> The first address is the address as it came from client.  You
> probably don't want to trust it at all.
>
> If you want to pass original ip address of client through multiple
> proxies - you just need to use real_ip_from / proxy_set_header
> consistently on all proxies in chain.

It appears that the order we're receiving it is from multiple
X-Forwarded-For addresses...

This is from:

corporate network proxy -> CDN -> nginx server

The corporate network proxy passes on an IP in X-Forwarded-For, then
the CDN seems to use X-Forwarded-For as well. nginx seems to get them
but the order is opposite. Are you sure this logic is proper? In this
experience it is actually backwards.

It's not actually a corporate proxy or CDN we have any control over.
We're just inheriting these headers.

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

Can real_ip_header's behavior be altered slightly?

mike December 29, 2009 04:36PM

Re: Can real_ip_header's behavior be altered slightly?

Maxim Dounin December 29, 2009 07:12PM

Re: Can real_ip_header's behavior be altered slightly?

mike December 29, 2009 07:18PM

Re: Can real_ip_header's behavior be altered slightly?

Maxim Dounin December 29, 2009 07:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
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