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

Firewall logs: rule number corresponsing to rule name

Scheduled Pinned Locked Moved Firewalling
4 Posts 2 Posters 4.8k 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.
  • B
    bradvido
    last edited by Jun 30, 2014, 9:50 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jul 1, 2014, 3:44 PM

      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 Jul 8, 2014, 9:47 PM

        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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jul 9, 2014, 12:28 AM

          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.
            This community forum collects and processes your personal information.
            consent.not_received