]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
rules.pl: Register load_customgrp() function for custom groups
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 16 Apr 2023 14:22:38 +0000 (16:22 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 3 Mar 2024 11:56:03 +0000 (12:56 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl

index a55e551c77dceb78fccd4a71bd5ca14ee69da657..d417a5ab49d9c9ab5d8e3ac398d351e2add2fb9e 100644 (file)
@@ -117,6 +117,9 @@ my @locations = &Location::Functions::get_locations();
 # Get all supported blocklists.
 my @blocklists = &IPblocklist::get_blocklists();
 
+# Get all configured custom groups.
+my @customgroups = &fwlib::get_custom_groups();
+
 # Name or the RED interface.
 my $RED_DEV = &General::get_red_interface();
 
@@ -133,6 +136,7 @@ my $POLICY_OUTPUT_ACTION   = $fwoptions{"FWPOLICY1"};
 # Register set loaders.
 &register_set_loader("Location::Functions::load_location", @locations);
 &register_set_loader("IPblocklist::Functions::load_blocklist", @blocklists);
+&register_set_loader("load_customgrp", @customgroups);
 
 # MAIN
 &main();