SNAT
-
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.
-
@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.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.