当前位置:   article > 正文

debian11使用ufw status报错

warning: iptables-legacy tables present, use iptables-legacy to see them

debian11使用ufw防火墙时报

  1. ERROR: problem running iptables: # Warning: iptables-legacy tables present, use iptables-legacy to see them
  2. iptables v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument

删除了 ufw 和 iptables,然后先安装 iptables,然后更改为 iptables-legacy。
之后安装ufw,ufw 似乎只适用于 iptables-legacy。

  1. apt purge ufw iptables
  2. apt install iptables
  3. update-alternatives --set iptables /usr/sbin/iptables-legacy
  4. update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
  5. apt install ufw

可参考https://tinker-board.asus.com/forum/index.php?/topic/14844-linux-firewall-not-working-tinker-board-2-debian-10-v200/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/397764
推荐阅读
相关标签
  

闽ICP备14008679号