nixCraft published a tutorial about saving iptables firewall rules permanently on Linux.
How to save iptables firewall rules permanently on Linux
Explains how to save and restore iptables rules permanently on Debian/Ubuntu Linux or CentOS/RHEL using config files and persistent config.
How to save iptables firewall rules permanently on Linux - nixCraft