<div dir="ltr"><div><br></div><div>Hello,</div><div><br></div><div>proxy_bind directive allows to specify source IP address for proxied connections.<br></div><div>This directive can be set to local IP address.</div><div><br></div><div>I'm wondering if there's a way to set $remote_addr as proxy_bind address? Or any other non-local IP address?</div><div><br></div><div>The idea is to see original client source IP address at the server site. </div><div>While it's not http traffic I cannot use XFF header.</div><div><br></div><div>Destination MAC address in the response packet from the server is set to nginx server interface address. So, there's no problem at layer 2 communication.</div><div><br></div>Can nginx listen for responses coming to non-local destination address?<div><br></div><div>Thanks in advance!</div><div><br clear="all"><div><div class="gmail_signature">--<br>Vsevolod Petrov</div></div>
</div></div>