To disable the firewall (i.e. iptables) on Linux CentOS (or RedHat):
$ sudo /etc/init.d/iptables stop
If you also need to disable it from starting automatically at OS boot:
$ sudo chkconfig iptables off
To turn it back on:
$ sudo /etc/init.d/iptables start
and also add it back to autostart:
$ sudo chkconfig iptables on
Comments