Save your script to /etc/sysconfig/avalon-iptables-config.sh, make it executable and run it.
*CAUTION: If you're connected over ssh, it might kick you off.
chmod +x /etc/sysconfig/avalon-iptables-config.sh /etc/sysconfig/avalon-iptables-config.sh
*If you run into connection issues along the line you can disable the iptables, completely dropping your firewall, by running "service iptables stop" and when you're done troubleshooting, run "service iptables start".
echo 0 > /selinux/enforce vim /etc/selinux/config #change the value of `SELINUX` from `enforcing` to `permissive`