Welcome! Log In Create A New Profile


NGINX Revers Proxy over IPSEC

Posted by rafnizp 
NGINX Revers Proxy over IPSEC
May 14, 2020 05:51PM
Hey People
I have configured NGINX as revers proxy on my PFSense Box
Next I added IPSEC tunel connecting to my network.
Now I'm forwarding http and https using Nginx revers proxy through IPSEC tunnel back to my servers. The problem I have is that on the back end server I do not see end client IP instead of I see IP address of IPSec Tunel of my PFSense box
Under Nginx config I have tested following but result is still that same no client IP
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;-||-|=left aligned paragraph=|

Does anyone know if possible to fix that?

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready