Linux – Saving Iptables Firewall Rules Permanently

apt-get install iptables-persistent

https://www.thomas-krenn.com/en/wiki/Saving_Iptables_Firewall_Rules_Permanently