V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
straysheep
V2EX  ›  Linux

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

  •  
  •   straysheep · 2023-02-21 17:27:03 +08:00 · 1334 次点击
    这是一个创建于 433 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    但是执行任何 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) gryed.png

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

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

    gNJuQ.png

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

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

    有大佬可以帮忙看看吗

    4 条回复    2023-02-22 09:25:54 +08:00
    DdDddDlush
        1
    DdDddDlush  
       2023-02-21 17:42:22 +08:00
    iptables -F 清空规则

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

    iptables -F 可以临时清空规则,急救一下
    julyclyde
        4
    julyclyde  
       2023-02-22 09:25:54 +08:00
    看一下 dbus 服务、polkitd 服务的状态。有可能是你遇到古代 bug 了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5224 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:51 · PVG 16:51 · LAX 01:51 · JFK 04:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.