[Improved] Iptables setup script

Improve process logic of this script