English Forums > Web Proxy Filtering and Caching

Nginx Proxy - Real IP

(1/1)

IKILLER147:
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

Fright:
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

IKILLER147:
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.

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

IKILLER147:
So the proxy settings are correct and I need to configure the web server to work with real IP addresses. Thank you

Navigation

[0] Message Index

Go to full version