簡體   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