Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NGINX Revers Proxy over IPSEC

    Scheduled Pinned Locked Moved IPsec
    1 Posts 1 Posters 254 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rafnizp
      last edited by rafnizp

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.