1.查看
service iptables status
2.开关
service iptables start/stop
3.开机启动
chkconfig iptables on/off
4.编辑端口
vi /etc/sysconfig/iptables
添加
-A INPUT -m state --state NEW -m tcp --dport 80 -j ACCEPT