]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
firewall: Make blocking all traffic impossible on HOSTILE fix-drop-hostile
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Mar 2022 14:36:40 +0000 (14:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Mar 2022 14:36:40 +0000 (14:36 +0000)
commit2bddc465e06e188bed5aac6060d944a0eef1b973
tree3229078174e2385a1d3277b2f856eccdee32a4ef
parent1b22a95ca88b8f0120312a119387ce96cf870437
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>
config/firewall/rules.pl
src/initscripts/system/firewall