mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove even negating nat rules
This commit is contained in:
parent
a03dfc60b0
commit
32fd170342
@ -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]'", $buffer);
|
||||
$_gb = exec("/sbin/pfctl -vvPnf {$g['tmp_path']}/rules.debug 2>/dev/null | /usr/bin/egrep '^@[0-9]+ [^nat|rdr|binat|no]'", $buffer);
|
||||
else
|
||||
$_gb = exec("/sbin/pfctl -vvPsr | grep '^@'", $buffer);
|
||||
if (is_array($buffer)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user