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_rulesets.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_rulesets.php')
-rwxr-xr-x | config/snort/snort_rulesets.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/snort/snort_rulesets.php b/config/snort/snort_rulesets.php index 62b68a1b..dc37cb10 100755 --- a/config/snort/snort_rulesets.php +++ b/config/snort/snort_rulesets.php @@ -118,7 +118,6 @@ if ($a_nat[$id]['ips_policy_enable'] == 'on') { else $disable_vrt_rules = ""; -/* alert file */ if ($_POST["Submit"]) { if ($_POST['ips_policy_enable'] == "on") { @@ -146,6 +145,7 @@ if ($_POST["Submit"]) { @unlink("{$snortdir}/snort_{$snort_uuid}_{$if_real}/rules/{$flowbit_rules_file}"); } + conf_mount_rw(); write_config(); /*************************************************/ @@ -155,6 +155,10 @@ if ($_POST["Submit"]) { $rebuild_rules = true; snort_generate_conf($a_nat[$id]); $rebuild_rules = false; + conf_mount_ro(); + + /* Soft-restart Snort to live-load new rules */ + snort_reload_config($a_nat[$id]); header("Location: /snort/snort_rulesets.php?id=$id"); exit; |