mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
convert-ids-backend-files: Regenerate ruleset and used rulesets file.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -128,3 +128,20 @@ foreach my $provider (@providers) {
|
||||
# Set correct ownership for the new modifications file.
|
||||
&IDS::set_ownership("$new_modifications_file");
|
||||
}
|
||||
|
||||
#
|
||||
## Step 3: Regenerate the ruleset.
|
||||
#
|
||||
|
||||
# Call oinkmaster wrapper function.
|
||||
&IDS::oinkmaster();
|
||||
|
||||
#
|
||||
## Step 4: Write new config file for suricata which contains the used rulesfiles.
|
||||
#
|
||||
|
||||
# Get enabled providers.
|
||||
my @enabled_providers = &IDS::get_enabled_providers();
|
||||
|
||||
# Write used rulesfiles file.
|
||||
&IDS::write_used_rulefiles_file(@enabled_providers);
|
||||
|
||||
Reference in New Issue
Block a user