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

Diag_logs_filter.php?getrulenum= is little selective

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
3 Posts 2 Posters 1.3k 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.
  • D
    DeepKnowledge
    last edited by Feb 25, 2009, 5:45 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Feb 26, 2009, 12:21 AM

      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
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Mar 1, 2009, 9:28 PM

        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
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received