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

    Firewall logs: rule number corresponsing to rule name

    Firewalling
    2
    4
    4.7k
    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.
    • B
      bradvido
      last edited by

      I have multiple firewall rules set up to log to a syslog server. This works great, but the raw log has a rule number in it, e.g. 103/0.  I can't figure out how to map the rule number back to the rules I see in the PFsense Web GUI.

      Thanks for any help.

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

        On pfSense to get those rule numbers you need to run "pfctl -vvsr" from the shell or Diagnostics > Command.

        Be careful, though. The numbers can change. At least until 2.2 where there is a static tracker id.

        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
        • B
          bradvido
          last edited by

          Thanks for the tip. That works from the shell.
          Is there any way to see the rule numbers in the configurator web gui?

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

            From the firewall log, click the action icon on a log entry and it shows you the corresponding rule.

            Or from Diagnostics > Command you can run the pfctl command to get the whole output.

            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.