]> git.ipfire.org Git - 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:19:12 +0000 (15:19 +0000)
commite77d960bacae0685e2c9fd1b93d4524771d53cd5
tree629bee1419b29a815789969324fee10cf751aa56
parent46b8eb9e7f7b1ef02e26b2fe2e8c4689b45424ec
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