Nginx Proxy - Real IP

Started by IKILLER147, March 21, 2024, 07:00:43 PM

Previous topic - Next topic
Hello, is it possible to configure the Nginx proxy server so that the original source address from the internet reaches our web servers? It is now running nat and all connections are showing up from the router's internal IP.

Thank you

Hi
Reverse proxy uses XFF (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) header to pass this info to the backends.
traffic flow is not entirely clear in your case

Thanks for the clarification - the traffic flow is as follows: internet - OPNsense Nginx Proxy - web server in dmz. On the web server I see a large number of attempts to log in to wordpress, but the source IP on all attempts points to OPNsense.

yep, backend server should treat ip from XFF as a client IP )
settings depend on the server

March 21, 2024, 08:42:55 PM #4 Last Edit: March 21, 2024, 08:48:15 PM by IKILLER147
So the proxy settings are correct and I need to configure the web server to work with real IP addresses. Thank you