跳到主要内容
帮助中心

新闻公告

产品更新、运营公告与行业观察
一手消息,第一时间同步给你

linux查看防火墙状态的命令是什么

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


本文链接
返回本栏目
工单