Dejar el script en /etc/network/if-pre-up.d in y llamarlo iptables
#**********************************************
#!/bin/sh
RESTORE=/sbin/iptables-restore
STAT=/usr/bin/stat
IPSTATE=/etc/iptables.conf
test -x $RESTORE || exit 0
test -x $STAT || exit 0
# Chequeo permisos y propietario (rw------- for root)
if test `$STAT --format="%a" $IPSTATE` -ne "600"; then
echo "Permisos para $IPSTATE debe de ser 600 (rw-------)"
exit 0
fi
if test `$STAT --format="%u" $IPSTATE` -ne "0"; then
echo "superusuario debe ser propietario de $IPSTATE (uid 0)"
exit 0
fi
# se restaura
$RESTORE < $IPSTATE
#**********************************
Asegurate que el script es ejecutable
chmod +x iptables chown root:root iptablesSe cargan las reglas automaticamente de /etc/iptables.conf , por lo que tendras que guardarlas a mano
Puedes ejecutar en terminal: "iptables-save > /etc/iptables.conf".