aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_edit.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-17 14:37:13 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-17 14:37:13 -0400
commit834c580f3bcfea9b8c23e61fc00a8250cfa0dabf (patch)
treebd9edf829454e0cd969d23bd049949d0bd38ae65 /config/snort/snort_interfaces_edit.php
parentb386e2d9ed7bf07807acde9cd68a467a6330fa1b (diff)
downloadpfsense-packages-834c580f3bcfea9b8c23e61fc00a8250cfa0dabf.tar.gz
pfsense-packages-834c580f3bcfea9b8c23e61fc00a8250cfa0dabf.tar.bz2
pfsense-packages-834c580f3bcfea9b8c23e61fc00a8250cfa0dabf.zip
Report each enabled Snort/BY2 interface as a separate service entry.
Diffstat (limited to 'config/snort/snort_interfaces_edit.php')
-rwxr-xr-xconfig/snort/snort_interfaces_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php
index a49d6198..aff9b4f7 100755
--- a/config/snort/snort_interfaces_edit.php
+++ b/config/snort/snort_interfaces_edit.php
@@ -224,6 +224,7 @@ if ($_POST["save"] && !$input_errors) {
if ($natent['interface'] != $a_rule[$id]['interface']) {
$oif_real = get_real_interface($a_rule[$id]['interface']);
if (snort_is_running($a_rule[$id]['uuid'], $oif_real)) {
+ touch("{$g['varrun_path']}/snort_{$a_rule[$id]['uuid']}.disabled");
snort_stop($a_rule[$id], $oif_real);
$snort_start = true;
}
@@ -378,8 +379,10 @@ if ($_POST["save"] && !$input_errors) {
sync_snort_package_config();
/* See if we need to restart Snort after an interface re-assignment */
- if ($snort_start == true)
+ if ($snort_start == true) {
snort_start($natent, $if_real);
+ unlink_if_exists("{$g['varrun_path']}/snort_{$natent['uuid']}.disabled");
+ }
/*******************************************************/
/* Signal Snort to reload configuration if we changed */