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

    PF 2.2.5 log pre-nat IP

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 906 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 Offline
      ritter6281
      last edited by

      Relative to PFSense 2.2.5 release, I am logging via syslog to a SIEM. One thing I notice is that logs from the firewall come in post-NAT in that a firewall log message describing an allow/deny action has the public IP of the WAN interface of the firewall. Is there a way to log the pre-nat IP on this activity?

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Depending on the direction of the traffic and NAT that may not be visible.

        Blocks that happen on WAN with INBOUND traffic will have NAT applied before they reach the firewall rules. If the logs show that traffic with the WAN IP address as the destination, then there was no NAT involved.

        If you are blocking outbound it gets a bit trickier, outbound NAT applies before the rules as well so you can't see a local source there, just the WAN IP address.

        If you want to see local addresses you have to block inbound on a local interface

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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