vim /etc/sysconfig/iptables
火墙开放端口 敲入命令 vim /etc/sysconfig/iptables
防火墙重启: /etc/init.d/iptables restart
临时开启或关闭防火墙 开启:service iptables start
关闭:service iptables stop
判断是否开启:service iptables status
永久开启或关闭防火墙 开启:chkconfig iptables on
关闭:chkconfig iptables off