# service iptables status
# service iptables stop
# service iptables start
查询卡机防火墙是否自启动
[root@CactiEZ ~]# chkconfig --list | grep iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
由此可见:2/3/4/5都是开机启动,数字代表runlevel等级
[root@CactiEZ ~]# chkconfig iptables off
[root@CactiEZ ~]# chkconfig --list | grep iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@CactiEZ ~]# chkconfig iptables on
[root@CactiEZ ~]# chkconfig --list | grep iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
原文:https://www.cnblogs.com/shmebluk/p/13734749.html