Re-save iptables rules with iptables-persistent
- 19 Oct 2017: Post was created (diff)
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
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.