Re-save iptables rules with iptables-persistent


When installing iptables-persistent with apt

# apt install iptables-persistent

the shell takes me into a wizard which asks me if I want to save the current IPv4 and IPv6 rules

iptables-persistent wizard step 1

So then, later, when I’ve made some more changes to my iptables ruleset, instead of manually putting the rulesets into files with iptables-save and ip6tables-save, I can re-run the wizard iptables-persistent which does it all for me:

# dpkg-reconfigure iptables-persistent