linux无法查看防火墙状态

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux无法查看防火墙状态相关的知识,希望对你有一定的参考价值。

执行命令service iptables status结果如下: [root@cngix ~]# service iptables status Redirecting to /bin/systemctl status iptables.service ● iptables.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) 那么应该如何查询防火墙状态

根据提示看操作系统应该是centos7系统。
查看防火墙状态,请参考如下命令:
systemctl status firewalld
参考技术A 一般来说,linux
系统下的防火墙配置使用
iptables
的比较多。你可以到
/etc/iptables
下面查看一下具体的
in、out、forward等的防火墙设置规则。

linux 查看防火墙状态

1.查看防火墙状态

systemctl status firewalld

2.查看防火墙是否开机启动

systemctl is-enabled firewalld

3.关闭防火墙

systemctl stop firewalld

systemctl status firewalld

4.禁用防火墙(系统启动时不启动防火墙服务)

systemctl disable firewalld

systemctl is-enabled firewalld

以上是关于linux无法查看防火墙状态的主要内容,如果未能解决你的问题,请参考以下文章

linux怎么查看防火墙状态

Linux防火墙的linux 如何查看防火墙是不是开启

linux 如何查看防火墙是不是开启

Linux 命令 防火墙 端口 查看 开启 关闭

Linux 命令 防火墙 端口 查看 开启 关闭

Linux 命令 防火墙 端口 查看 开启 关闭