mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
convert-snort: Adjust code to use changed modify_sids_file function.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
81bae51f61
commit
f1add9a8dd
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user