1.命令查看防火墙状态:chkconfig --list iptables
如图:表示防火墙开启
关闭防火墙:
service iptables stop(即时生效,重启后失效)
chkconfig iptables off (永久性生效)
防火墙还需要关闭ipv6的防火墙:chkconfig ip6tables off
命令查看防火墙状态:chkconfig --list iptables
表示防火墙关闭
1.命令查看防火墙状态:chkconfig --list iptables
如图:表示防火墙开启
关闭防火墙:
service iptables stop(即时生效,重启后失效)
chkconfig iptables off (永久性生效)
防火墙还需要关闭ipv6的防火墙:chkconfig ip6tables off
命令查看防火墙状态:chkconfig --list iptables
表示防火墙关闭