Io ho trovato qua il tutto per settare iptables con uno script.
http://forum.ubuntu-it.org/index.php?topic=12833.0

Ciao Codici Miei