]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
convert-ids-backend-files: Regenerate ruleset and used rulesets file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 15 Apr 2022 03:10:45 +0000 (05:10 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 15 Apr 2022 03:10:45 +0000 (05:10 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/suricata/convert-ids-backend-files

index 78e8edbf1ce5a6a5065c045b03c554fee8bc21bd..e7cef039d9375317ed23ff825a5499994b170e75 100644 (file)
@@ -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);