Re-save iptables rules with iptables-persistent

Revision history
Tags: iptables ubuntu debian apt dpkg

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

If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.