1.检查防火墙是否开启:
service iptables status
2.显示各启动级别 防火墙的打开关闭情况
chkconfig –list | grep iptables
可以用 chkconfig iptables off 使系统启动时不启动防火墙
3.关闭放火墙的方法:
(1)即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop
(2)重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off