求助! CentOS 防火墙执行命令总是提示 dbus 错误

2023-02-21 17:27:03 +08:00
 straysheep

firewalld 服务运行正常,显示 active(running)

但是执行任何 firewalld 命令,比如 firewall-cmd --state ,都会隔好一会才响应以下错误

ERROR:dbus.proxies:Introspect error on :1.7406:/org/fedoraproject/FirewallD1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

用 systemctl stop firewalld 关闭防火墙,再看防火墙的状态是 failed(Result: time out)

然后我在笔记本上 ping 这个虚拟机,ping 不通,提示 TTL 传输中过期,部署在这台虚拟机上的服务也无法访问

tracert 则是在两个 IP 地址之间循环……

不知道和防火墙有关系吗?

我们这个服务器是内网的服务器,上次也出现这样的情况,联系了网络中心,让关闭防火墙试试,上次我重启防火墙就好了,这一次再怎么关闭、重启防火墙都没有用,太无奈了

有大佬可以帮忙看看吗

1352 次点击
所在节点    Linux
4 条回复
DdDddDlush
2023-02-21 17:42:22 +08:00
iptables -F 清空规则

清空前注意保存
billlee
2023-02-21 19:47:11 +08:00
第一个图的状态就不正常,rmmod nf_conntrack 阻塞了,看内核日志吧
julyclyde
2023-02-22 09:25:24 +08:00
是需要修好 dbus 服务的
否则和 firewalld 之间无法传输信息

iptables -F 可以临时清空规则,急救一下
julyclyde
2023-02-22 09:25:54 +08:00
看一下 dbus 服务、polkitd 服务的状态。有可能是你遇到古代 bug 了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/917993

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX