NGINX Revers Proxy over IPSEC



  • 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?

    Thanks
    Raf


Log in to reply