To set up persistent IPTables rules on Debian GNU/Linux 7 (wheezy)
install package using command:
# apt-get install iptables-persistent
Save current IPTables rules using command:
# /etc/init.d/iptables-persistent save
Edit /etc/iptables/rules.v4 file for IPv4 and
/etc/iptables/rules.v6 for IPv6 rules.
To apply new rules run command:
# /etc/init.d/iptables-persistent reload
Loading iptables rules… IPv4… IPv6…done.
To view current IPTables rules:
# iptables -vnL --line-numbers |more