Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
Nginx Proxy - Real IP
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nginx Proxy - Real IP (Read 1555 times)
IKILLER147
Newbie
Posts: 5
Karma: 0
Nginx Proxy - Real IP
«
on:
March 21, 2024, 07:00:43 pm »
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
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Nginx Proxy - Real IP
«
Reply #1 on:
March 21, 2024, 08:10:59 pm »
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
Logged
IKILLER147
Newbie
Posts: 5
Karma: 0
Re: Nginx Proxy - Real IP
«
Reply #2 on:
March 21, 2024, 08:23:23 pm »
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.
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Nginx Proxy - Real IP
«
Reply #3 on:
March 21, 2024, 08:26:42 pm »
yep, backend server should treat ip from XFF as a client IP )
settings depend on the server
Logged
IKILLER147
Newbie
Posts: 5
Karma: 0
Re: Nginx Proxy - Real IP
«
Reply #4 on:
March 21, 2024, 08:42:55 pm »
So the proxy settings are correct and I need to configure the web server to work with real IP addresses. Thank you
«
Last Edit: March 21, 2024, 08:48:15 pm by IKILLER147
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
Nginx Proxy - Real IP