简体   繁体   English

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

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

I have this error.我有这个错误。 I have days trying to solve it but I can not find the answer, if someone something similar happened I would appreciate your help.我有几天试图解决它,但我找不到答案,如果有人发生类似的事情,我会很感激你的帮助。

ERROR: problem running ufw-init iptables-restore v1.8.4 (legacy): Couldn't load match `limit':No such file or directory错误:运行 ufw-init iptables-restore v1.8.4(旧版)时出现问题:无法加载匹配“限制”:没有这样的文件或目录

Error occurred at line: 63 Try iptables-restore -h' or 'iptables-restore --help' for more information. iptables-restore v1.8.4 (legacy): Couldn't load match错误发生在第 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 limit':No such file or directory iptables-restore -h' or 'iptables-restore --help' for more information. iptables-restore v1.8.4 (legacy): Couldn't load match限制':没有这样的文件或目录

Error occurred at line: 8 Try `iptables-restore -h' or 'iptables-restore --help' for more information.错误发生在第 8 行尝试 `iptables-restore -h' 或 'iptables-restore --help' 以获得更多信息。

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

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

Adding a firewall to wsl2 might not be very useful because you can gain root access to wsl2 with a simple command: "wsl -u root".将防火墙添加到 wsl2 可能不是很有用,因为您可以通过一个简单的命令获得对 wsl2 的 root 访问权限:“wsl -u root”。

Check this ( https://superuser.com/a/1626513 ) post out for more details.检查此( https://superuser.com/a/1626513 )发布以获取更多详细信息。

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

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