azev
V2EX  ›  问与答

如果 ufw 服务停止状态 iptables 规则还有效吗?

  •  
  •   azev · Oct 19, 2022 · 1059 views
    This topic created in 1302 days ago, the information mentioned may be changed or developed.
    ufw 为什么是作为一个服务呢?
    4 replies    2022-10-19 15:22:46 +08:00
    ipwx
        1
    ipwx  
       Oct 19, 2022
    1 、我映像中会清掉这部分规则。
    2 、所以它是个服务。
    azev
        2
    azev  
    OP
       Oct 19, 2022
    @ipwx 多谢
    你说的‘这部分规则’是通过 ufw 添加的规则?
    如果是直接通过 iptables 命令添加的规则呢?
    azev
        3
    azev  
    OP
       Oct 19, 2022
    @ipwx 如果在 ufw 服务停止状态下 使用 iptables 命令添加规则 会有效吗?
    ipwx
        4
    ipwx  
       Oct 19, 2022
    ufw 的规则在 iptables 里面是独立的 chain 。

    iptables 有 chain 的概念你可以看看。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2852 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:28 · PVG 23:28 · LAX 08:28 · JFK 11:28
    ♥ Do have faith in what you're doing.