iface eth0 inet static .... pre-up iptables-restore < /etc/network/iptables.rules.v4 pre-up ip6tables-restore < /etc/network/iptables.rules.v6