Re: preserve client source address when proxying to upstream

2015-12-17 Thread Vsevolod Petrov
Thanks for pointing me in the right direction, Maxim! I've found a number of posts where people are discussing nginx acting as listener at 0.0.0.0:80/0 for outbound traffic, making able the system to review every outgoing packet. In this way nginx can act as transparent proxy that do not perform d

Re: preserve client source address when proxying to upstream

2015-12-16 Thread Maxim Dounin
Hello! On Wed, Dec 16, 2015 at 06:56:02PM +0300, Vsevolod Petrov wrote: > Hello, > > proxy_bind directive allows to specify source IP address for proxied > connections. > This directive can be set to local IP address. > > I'm wondering if there's a way to set $remote_addr as proxy_bind address?

preserve client source address when proxying to upstream

2015-12-16 Thread Vsevolod Petrov
Hello, proxy_bind directive allows to specify source IP address for proxied connections. This directive can be set to local IP address. I'm wondering if there's a way to set $remote_addr as proxy_bind address? Or any other non-local IP address? The idea is to see original client source IP addres