Navigation

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

    Diag_logs_filter.php?getrulenum= is little selective

    2.0-RC Snapshot Feedback and Problems - RETIRED
    2
    3
    1213
    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.
    • D
      DeepKnowledge last edited by

      diag_logs_filter.php?getrulenum=3 return all the rules that begin with 3 (like 3,30,31,… )

      I'm a newbie in FreeBSD.

      pfctl -vvsr | grep -w @{$rulenum}

      is not perfect …

      Can you implement a perfect grep filter ?

      Thanks

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

        Try this:

        $rule = `pfctl -vvsr | grep '^@{$rulenum} '`;
        

        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
        • jimp
          jimp Rebel Alliance Developer Netgate last edited by

          for those that don't want to change this by hand, a fix for this will be in 1.2.3.

          I also rolled it into the newly updated Dashboard package (0.7.0).

          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