Diag_logs_filter.php?getrulenum= is little selective
-
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
-
Try this:
$rule = `pfctl -vvsr | grep '^@{$rulenum} '`;
-
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).
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.