繁体   English   中英

为什么不能在wsl2上启动ufw?

[英]Why can't you start ufw on wsl2?

我有这个错误。 我有几天试图解决它,但我找不到答案,如果有人发生类似的事情,我会很感激你的帮助。

错误:运行 ufw-init iptables-restore v1.8.4(旧版)时出现问题:无法加载匹配“限制”:没有这样的文件或目录

错误发生在第 63 行尝试iptables-restore -h' or 'iptables-restore --help' for more information. iptables-restore v1.8.4 (legacy): Couldn't load match iptables-restore -h' or 'iptables-restore --help' for more information. iptables-restore v1.8.4 (legacy): Couldn't load match限制':没有这样的文件或目录

错误发生在第 8 行尝试 `iptables-restore -h' 或 'iptables-restore --help' 以获得更多信息。

运行“/etc/ufw/before.rules”时出现问题 运行“/etc/ufw/user.rules”时出现问题

错误:运行 ufw-init 出现问题

将防火墙添加到 wsl2 可能不是很有用,因为您可以通过一个简单的命令获得对 wsl2 的 root 访问权限:“wsl -u root”。

检查此( https://superuser.com/a/1626513 )发布以获取更多详细信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM