From: Stefan Schantl Date: Wed, 5 Jun 2019 18:56:34 +0000 (+0200) Subject: convert-snort: Adjust code to use changed modify_sids_file function. X-Git-Tag: v2.23-core133~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1add9a8dd5271af669ee0831f30b207b33d158d;p=ipfire-2.x.git convert-snort: Adjust code to use changed modify_sids_file function. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/config/suricata/convert-snort b/config/suricata/convert-snort index 83931fa5b9..5ed36954f3 100644 --- a/config/suricata/convert-snort +++ b/config/suricata/convert-snort @@ -196,18 +196,8 @@ if (-f $guardian_meta) { ## Step 5: Generate and write the file to modify the ruleset. # -# Converters default is to only monitor the traffic, so set the IDS action to -# "alert". -my $IDS_action = "alert"; - -# Check if the traffic only should be monitored. -if ($idssettings{"MONITOR_TRAFFIC_ONLY"} eq "off") { - # Swith IDS action to alert only. - $IDS_action = "drop"; -} - # Call subfunction and pass the desired IDS action. -&IDS::write_modify_sids_file($IDS_action); +&IDS::write_modify_sids_file(); # Set correct ownership. &IDS::set_ownership("$IDS::modify_sids_file");