aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/snort-dev/snort.inc17
1 files changed, 8 insertions, 9 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc
index b72c806e..32519cf1 100644
--- a/config/snort-dev/snort.inc
+++ b/config/snort-dev/snort.inc
@@ -274,21 +274,23 @@ function Running_Stop($snort_uuid, $if_real, $id) {
/*
* TODO: Add a GUI option that lets the user keep full logs
*/
- /*
- if ($start_up != '') {
+ if (!empty($start_up)) {
@exec("/bin/kill {$start_up}");
+ /*
@exec("/bin/rm /var/log/snort/run/snort_{$if_real}{$snort_uuid}*");
@exec("/bin/rm /var/log/snort/{$snort_uuid}_{$if_real}/snort.u1*");
@exec("/bin/rm /var/log/snort/{$snort_uuid}_{$if_real}/snort.u2*");
+ */
}
- if ($start_upb != '') {
+ if (!empty($start_upb)) {
@exec("/bin/kill {$start_upb}");
+ /*
@exec("/bin/rm /var/log/snort/run/barnyard2_{$snort_uuid}_{$if_real}*");
@exec("/bin/rm /var/log/snort/barnyard2/{$snort_uuid}_{$if_real}/snort.u1*");
@exec("/bin/rm /var/log/snort/barnyard2/{$snort_uuid}_{$if_real}/snort.u2*");
+ */
}
- */
/* Log Iface stop */
exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule STOP for {$snort_uuid}_{$if_real}...'");
@@ -1641,16 +1643,13 @@ function generate_snort_conf($id, $if_real, $snort_uuid)
/* generate rule sections to load */
- $enabled_rulesets = $snortcfg['rulesets'];
$selected_rules_sections = "";
- if (!empty($enabled_rulesets)) {
- $enabled_rulesets_array = explode("\|\|", $enabled_rulesets);
+ if (!empty($snortcfg['rulesets'])) {
+ $enabled_rulesets_array = explode('||', $snortcfg['rulesets']);
foreach($enabled_rulesets_array as $enabled_item)
$selected_rules_sections .= "include \$RULE_PATH/{$enabled_item}\n";
}
- /////////////////////////////
-
/* preprocessor code */
/* def perform_stat */