Have Shorewall-init restore ipsets before stopping the firewalls

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2020-04-20 09:23:34 -07:00
parent 086f7a0e6d
commit 18360471ab
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -65,6 +65,11 @@ shorewall_start () {
local STATEDIR
printf "Initializing \"Shorewall-based firewalls\": "
if [ -n "$SAVE_IPSETS" -a -f "$SAVE_IPSETS" ]; then
ipset -R < "$SAVE_IPSETS"
fi
for PRODUCT in $PRODUCTS; do
if setstatedir; then
#
@ -78,10 +83,6 @@ shorewall_start () {
fi
done
if [ -n "$SAVE_IPSETS" -a -f "$SAVE_IPSETS" ]; then
ipset -R < "$SAVE_IPSETS"
fi
return 0
}