improve reload logic
authorJo-Philipp Wich <jo@mein.io>
Tue, 2 Jun 2020 17:37:09 +0000 (19:37 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 2 Jun 2020 18:37:29 +0000 (20:37 +0200)
commit23cc543f4f7ca636400707161e7e8355b6ecd856
tree1d5f704234a649b6acf17cc71aa0db4f6dff0a2a
parent9d7f49df47ad40a95ea0a37b9dcf423ee07819a7
improve reload logic

 - Purge chains in two phases, first flush rules, then delete chains
 - Create missing zone user chains during reload
 - Keep used chains on reload to avoid removing user rules

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
defaults.c
iptables.c
iptables.h
zones.c