<div dir="ltr">Hi guys,<div><br></div><div>I need to log the user remote port at nginx level when requests are passed through proxy protocol (legal requirement), but looking at implementation I saw that all of the work stopped after reading source IP.</div><div><br></div><div>In my setup, I have bgp sessions mounted on haproxy instances, but the haproxy acts at level 4 and only route traffic to different nginx farms depending of TLS extension value provided by client : it permits to serve for example both spdy and h2 over alpn.</div><div><br></div><div>I have tried to implement what I needed and update the test case, changesets in attachment.</div><div><br></div><div>Regards.</div><div><br></div><div>Tony Fouchard.</div></div>