#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
#/etc/rc.d/init.d/iptables save
After restarting the computer, the firewall has opened two ports 80 and 22 by default.
Temporarily turn off the firewall completely without restarting the machine:
#/etc/init.d/iptables status ## View firewall status
#/etc/init.d/iptables stop ## This time close the firewall
#/etc/init.d/iptables restart ## Restart firewall
Permanently turn off the firewall:
#chkconfig --level 35 iptables off ## Note that there are two small British dashes in the middle; reboot