diff options
author | Ermal Luçi <eri@pfsense.org> | 2014-01-13 03:41:15 -0800 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2014-01-13 03:41:15 -0800 |
commit | 13d9babd775498cf1e3b796e07030e946e1cb12a (patch) | |
tree | d21f85d6fcbee014b0221e546927548eced3a340 /config/snort/snort_preprocessors.php | |
parent | 141c1dc4774370210c41580da5ba897bc54c8e12 (diff) | |
parent | 8e3a6c43552fa36df9dd19a0dd0db312add43d11 (diff) | |
download | pfsense-packages-13d9babd775498cf1e3b796e07030e946e1cb12a.tar.gz pfsense-packages-13d9babd775498cf1e3b796e07030e946e1cb12a.tar.bz2 pfsense-packages-13d9babd775498cf1e3b796e07030e946e1cb12a.zip |
Merge pull request #571 from bmeeks8/master
Snort 2.9.5.5 pkg v3.0.2 Update -- Bug Fixes
Diffstat (limited to 'config/snort/snort_preprocessors.php')
-rwxr-xr-x | config/snort/snort_preprocessors.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/config/snort/snort_preprocessors.php b/config/snort/snort_preprocessors.php index 289a3941..d1b3e5be 100755 --- a/config/snort/snort_preprocessors.php +++ b/config/snort/snort_preprocessors.php @@ -509,25 +509,27 @@ elseif ($_POST['Submit']) { $natent['stream5_track_udp'] = $_POST['stream5_track_udp'] ? 'on' : 'off'; $natent['stream5_track_icmp'] = $_POST['stream5_track_icmp'] ? 'on' : 'off'; - /* If 'preproc_auto_rule_disable' is off, then clear log file */ - if ($natent['preproc_auto_rule_disable'] == 'off') - @unlink("{$disabled_rules_log}"); - if (isset($id) && $a_nat[$id]) { $a_nat[$id] = $natent; write_config(); } - /* Set flag to rebuild rules for this interface */ - $rebuild_rules = true; + conf_mount_rw(); /*************************************************/ /* Update the snort.conf file and rebuild the */ /* rules for this interface. */ /*************************************************/ + $rebuild_rules = true; snort_generate_conf($natent); $rebuild_rules = false; + /* If 'preproc_auto_rule_disable' is off, then clear log file */ + if ($natent['preproc_auto_rule_disable'] == 'off') + @unlink("{$disabled_rules_log}"); + + conf_mount_ro(); + /*******************************************************/ /* Signal Snort to reload Host Attribute Table if one */ /* is configured and saved. */ |