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

    How many times are fw rules processed?

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    5 Posts 4 Posters 1.7k 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.
    • P
      phospher
      last edited by

      Is there any way to see how many times a firewall rule is used?

      It would be awesome if I could this so that I could optimize my ruleset moving the most used rules to the top.

      Thanks and 2.0 is frigin awesome!

      1 Reply Last reply Reply Quote 0
      • F
        FisherKing
        last edited by

        There might be a better way to do this, but…  You could set the rules in question to log packets and then grep the log files after a day or a week or so.

        1 Reply Last reply Reply Quote 0
        • D
          danswartz
          last edited by

          Honestly unless you have hundreds of rules, this is not a productive use of your time…

          1 Reply Last reply Reply Quote 0
          • P
            phospher
            last edited by

            @danswartz:

            Honestly unless you have hundreds of rules, this is not a productive use of your time…

            Exactly, we have hundreds and hundreds.

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              pfctl -vsr

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