summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-31 12:47:28 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-01-02 08:41:32 -0200
commit2a45e05fc567d92b03a73efc840960b35f5dbc35 (patch)
treebaa68b0e59431432d29bf337d761d1b44437fe0b /etc
parent52311f0c834276a5ada3e15a84f5febc0cd05ae6 (diff)
downloadpfsense-2a45e05fc567d92b03a73efc840960b35f5dbc35.zip
pfsense-2a45e05fc567d92b03a73efc840960b35f5dbc35.tar.gz
Fix filter regex
Diffstat (limited to 'etc')
-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 d6184fb..71e5495 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -294,7 +294,7 @@ function buffer_rules_load() {
}
unset($buffer, $_gb);
if (file_exists("{$g['tmp_path']}/rules.debug"))
- $_gb = exec("/sbin/pfctl -vvPnf {$g['tmp_path']}/rules.debug 2>/dev/null | /usr/bin/egrep '^@[0-9]+ [^nat|rdr|binat|no|scrub]'", $buffer);
+ $_gb = exec("/sbin/pfctl -vvPnf {$g['tmp_path']}/rules.debug 2>/dev/null | /usr/bin/egrep '^@[0-9]+ ' | /usr/bin/egrep -v '^@[0-9]+ (nat|rdr|binat|no|scrub)'", $buffer);
else
$_gb = exec("/sbin/pfctl -vvPsr | grep '^@'", $buffer);
if (is_array($buffer)) {
OpenPOWER on IntegriCloud