linux查看防火墙状态的方法:可以通过执行【chkconfig --list iptables】命令来查看防火墙状态。如果要开启防火墙,可以执行【chkconfig iptables on】命令。
具体方法:
可以通过如下命令查看iptables防火墙状态:
chkconfig --list iptables
开启和关闭防火墙的方法:
1、永久性生效
开启:
chkconfig iptables on chkconfig ip6tables off ---针对ipv6
关闭:
chkconfig iptables offchkconfig ip6tables off ---针对ipv6
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号