]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
firewall: Make blocking all traffic impossible on HOSTILE
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Mar 2022 14:43:11 +0000 (14:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 14 Mar 2022 15:25:58 +0000 (15:25 +0000)
commit12cd38896795836c3f4e2c8a661b2c36d444d89a
tree1093774d245284da7efd0b6423f6efcd2723d4f1
parentfe6b15f843cfbfe7ba84faa35c87fce2c2470235
firewall: Make blocking all traffic impossible on HOSTILE

The current setup can fail and block all traffic on RED if the RETURN
rules could not be created.

This can happen when the kernel fails to load the ipset module, as it is
the case after upgrading to a new kernel. Restarting the firewall will
cause that the system is being cut off the internet.

This design now changes that if those rules cannot be created, the
DROP_HOSTILE feature is just inactive, but it would not disrupt any
traffic.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/firewall/rules.pl
src/initscripts/system/firewall