]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
rules.pl: Refactor logic to handle the IP blocklist feature.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Apr 2022 19:43:49 +0000 (21:43 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Jul 2022 15:26:14 +0000 (17:26 +0200)
commitaba4e1cd1ecc4620b3d90b2111167b4d3f523a76
treef93adca28c175195266df288309da1350f8ceadb
parent960608c8b50e711a5409594529744c0705f2dd58
rules.pl: Refactor logic to handle the IP blocklist feature.

* Fixes that the same chain would be created each time a firewall
reload is performed.

* Also fixes multiple log and drop rules inside the the BLOCKLIST_DROP
  chains after doing a firewall reload.

* Orphaned BLOCKLIST_DROP chains now will be flushed and removed in case
  the blocklist gets disabled or the entire feature will be swithed off.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl