summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter_log.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-30 14:47:25 +0000
committerErmal <eri@pfsense.org>2013-12-30 14:47:25 +0000
commita03dfc60b0dfa4704689439f38bf57caf7ab394e (patch)
treee45d0b1e018cfb2a6a7f2aea42d65a87b8781ba9 /etc/inc/filter_log.inc
parentb80e29e486464affddd79006a3b2f6428b30a4bd (diff)
downloadpfsense-a03dfc60b0dfa4704689439f38bf57caf7ab394e.zip
pfsense-a03dfc60b0dfa4704689439f38bf57caf7ab394e.tar.gz
Correct matching for single rule. Somehow the egrep did not work there!
Diffstat (limited to 'etc/inc/filter_log.inc')
-rw-r--r--etc/inc/filter_log.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index 7cdb370..ed5e8f5 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -268,7 +268,7 @@ function find_rule_by_number($rulenum, $type="rules") {
$_gb = exec("/sbin/pfctl -vvPsn -a \"miniupnpd\" | grep '^@'", $buffer);
else {
if (file_exists("{$g['tmp_path']}/rules.debug"))
- $_gb = exec("/sbin/pfctl -vvPnf {$g['tmp_path']}/rules.debug 2>/dev/null | /usr/bin/egrep '^@{$rulenum} [^nat|rdr|binat]'", $buffer);
+ $_gb = exec("/sbin/pfctl -vvPnf {$g['tmp_path']}/rules.debug 2>/dev/null | /usr/bin/egrep '^@{$rulenum} {$type}'", $buffer);
else
$_gb = exec("/sbin/pfctl -vvPsr | grep '^@{$rulenum}'", $buffer);
}
OpenPOWER on IntegriCloud