diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-07-23 15:37:29 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-07-23 15:37:29 -0400 |
commit | ae3323845cd71bfae33f12203e6362f03fc634d9 (patch) | |
tree | 38295cc2d83fec4133aa91af0150c4b49704e3b9 /config/snort/snort_rules.php | |
parent | 413a8566ef8508972e1f663f269619f26a9c543a (diff) | |
download | pfsense-packages-ae3323845cd71bfae33f12203e6362f03fc634d9.tar.gz pfsense-packages-ae3323845cd71bfae33f12203e6362f03fc634d9.tar.bz2 pfsense-packages-ae3323845cd71bfae33f12203e6362f03fc634d9.zip |
Update Snort package to latest 2.9.6.2 binary and fix some GUI bugs.
Diffstat (limited to 'config/snort/snort_rules.php')
-rwxr-xr-x | config/snort/snort_rules.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index e69152c3..df17efc0 100755 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -330,7 +330,9 @@ elseif ($_POST['clear']) { unset($a_rule[$id]['customrules']); write_config("Snort pkg: clear all custom rules for {$a_rule[$id]['interface']}."); $rebuild_rules = true; + conf_mount_rw(); snort_generate_conf($a_rule[$id]); + conf_mount_ro(); $rebuild_rules = false; $pconfig['customrules'] = ''; } @@ -342,7 +344,9 @@ elseif ($_POST['save']) { unset($a_rule[$id]['customrules']); write_config("Snort pkg: save modified custom rules for {$a_rule[$id]['interface']}."); $rebuild_rules = true; + conf_mount_rw(); snort_generate_conf($a_rule[$id]); + conf_mount_ro(); $rebuild_rules = false; $output = ""; $retcode = ""; @@ -371,7 +375,9 @@ else if ($_POST['apply']) { /* rules for this interface. */ /*************************************************/ $rebuild_rules = true; + conf_mount_rw(); snort_generate_conf($a_rule[$id]); + conf_mount_ro(); $rebuild_rules = false; /* Soft-restart Snort to live-load new rules */ |