(1) 重启后永久性生效:
开启:chkconfig iptables on
关闭:chkconfig iptables off
(2) 即时生效,重启后失效(即重启后防火墙自动开启):
开启:service iptables start
关闭:service iptables stop
service iptables status
(1) 重启后永久性生效:
开启:chkconfig iptables on
关闭:chkconfig iptables off
(2) 即时生效,重启后失效(即重启后防火墙自动开启):
开启:service iptables start
关闭:service iptables stop
service iptables status