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

    Port for NAT'd firewall logs

    Scheduled Pinned Locked Moved NAT
    4 Posts 2 Posters 1.0k 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.
    • J
      jeffhammett
      last edited by

      I run an OpenVPN server on UDP 1194 and I have various other ports (53, 123, etc.) NAT'd to 1194 UDP for the OpenVPN server to get around restrictive firewalls.

      When looking at the firewall logs for allowed connections the log shows UDP 1194. Is there a way to see what port the original connection came in on?

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        It's already translated when it hits the filter. The NAT state will show the original, Diag>States.

        1 Reply Last reply Reply Quote 0
        • J
          jeffhammett
          last edited by

          @cmb:

          It's already translated when it hits the filter. The NAT state will show the original, Diag>States.

          Thats what I was afraid of. And there isn't any log for the states is there? So in order to see the NAT state I need to be watching the states in real time?

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            Correct, the NAT translations aren't logged.

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