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

SNAT

NAT
2
2
242
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 Feb 28, 2023, 5:44 PM

    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 Feb 28, 2023, 5:51 PM Reply Quote 0
    • V
      viragomann @mUnChiE
      last edited by Feb 28, 2023, 5:51 PM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.