1. 永久性生效
开启:chkconfig iptables on
关闭:chkconfig iptables off
2. 即时生效,重启后失效
开启:service iptables start
关闭:service iptables stop
3.查看防火墙的状态
chkconfig iptables --list
chkconfig ip6tables --list
关闭防火墙(临时)
chkconfig iptables stop
chkconfig ip6tables stop
永久关闭
chkconfig iptables off
chkconfig ip6tables off