Navigation

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

    SNAT

    NAT
    2
    2
    34
    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.
    • M
      mUnChiE last edited by

      I have a web server that has a SNAT created for port 80. This pfSense box isn't the main firewall, thus why I had to create a SNAT port forwarding. Everything works, except the Web Server logs don't show the client's IP. It shows the WAN IP address in the logs instead.

      Any ideas how I can resolve this? I need the web server to see the real client's IP.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @mUnChiE last edited by

        @munchie
        If you do SNAT on packets, which are going to a device, it sees only the NAT IP, nothing else.

        If you want to see the origin clients IP remove the SNAT rule and set pfSense as default gateway on the web server.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post