]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
rules.pl: Add tiny ipset_restore function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 14 Feb 2022 18:42:49 +0000 (19:42 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 15 Feb 2022 18:07:03 +0000 (18:07 +0000)
commit6babb404cc63d6f5c25d64be8e4370b7cb009c2c
treef3cd2a639dbec3c833e0ccca4423681dc3905634
parent3d8868807506331a1c4fe160748fa0635bac2a95
rules.pl: Add tiny ipset_restore function.

This helper function is used to load a previously exported list of
networks for a given country code into the ipset module, so it can be
used for any kind of firewall rules.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
config/firewall/rules.pl