Ubuntu 22.04 防火墙启动问题:没有 python-nftables

Ubuntu 22.04 防火墙启动问题:没有 python-nftables

我尝试使用firewalld而不是,但即使通过ufw手动下载后,它仍然显示以下错误python-nftablessudo apt install

iptables没有被使用。

$ systemctl status iptables
Unit iptables.service could not be found.

FirewallBackendnftables当我检查时已经设置为/etc/firewalld/firewalld.conf

  • 错误信息1

    ERROR: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: No such file or directory
    

    JSON 斑点:

    {"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"chain": {"family": "inet", "table": "firewalld", "name": "mangle_PREROUTING", "type": "filter", "hook": "prerouting", "prio": -140}}}, {"add": >
    
  • 错误信息2

    ERROR: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: No such file or directory
    

    JSON 斑点:

    {"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"chain": {"family": "inet", "table": "firewalld", "name": "mangle_PREROUTING", "type": "filter", "hook": "prerouting", "prio": -140}}}, {"add": >
    


这可行,但我不确定我是否可以这样做。修改/etc/firewalld/firewalld.confIPv6_rpfilter=no作品。

任何想法?

相关内容