]> git.ipfire.org Git - people/stevee/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>
Sat, 7 May 2022 09:39:35 +0000 (11:39 +0200)
commit895c01b98811714e5ecb3a9fb72a9e05908c651c
tree78222d907e2e5d6d279ab6660c5480395eeabf4b
parentfdcb1ae29ac1f19a35d1893948bf2b96147ff521
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