diff options
author | Ermal <eri@pfsense.org> | 2013-08-15 19:30:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-08-15 19:30:56 +0000 |
commit | c6868a8fae2ef26288e11a588749f5f54469687c (patch) | |
tree | 8c09ba143f9455718740197b0d7bf5e6a60a3e4c /etc | |
parent | b8131408db568b67c42a70490b0b2ec1bda84c13 (diff) | |
download | pfsense-c6868a8fae2ef26288e11a588749f5f54469687c.zip pfsense-c6868a8fae2ef26288e11a588749f5f54469687c.tar.gz |
Unbreak limitrules and probably pfblocker errors. Spotted-by: Jim
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 88cfa8d..8f1020f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -304,16 +304,15 @@ function filter_configure_sync($delete_states_if_needed = true) { return; } - unset($rules, $limitrules); - unset($rules_loading, $rules_error); - @file_put_contents("{$g['tmp_path']}/rules.limits", $limitrules); mwexec("/sbin/pfctl -f {$g['tmp_path']}/rules.limits"); + unset($rules, $limitrules); if(isset($config['system']['developerspew'])) { $mt = microtime(); echo "pfctl being called at $mt\n"; } + unset($rules_loading, $rules_error); $_grbg = exec("/sbin/pfctl -o basic -f {$g['tmp_path']}/rules.debug 2>&1", $rules_error, $rules_loading); if(isset($config['system']['developerspew'])) { $mt = microtime(); |