iptables v1.6.1 无法初始化 iptables 表 `filter' Ubuntu 18.04 Bash Windows
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50946618/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Iptables v1.6.1 can't initialize iptables table `filter' Ubuntu 18.04 Bash Windows
提问by JohnJohnsonJoe
I'm running Ubuntu 18.04 from Windows Bash:
我正在从 Windows Bash 运行 Ubuntu 18.04:
uname -a
Linux DESKTOP-M87DGAS 4.4.0-17134-Microsoft #112-Microsoft Thu Jun 07 22:57:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
I need to open some port with:
我需要打开一些端口:
sudo ufw allow 22/tcp
But I get the following error:
但我收到以下错误:
ERROR: initcaps
[Errno 2] iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
ERROR: initcaps
[Errno 2] iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (Do you need insmod?)
也许 iptables 或你的内核需要升级。
I get the same error by typing:
我通过键入以下内容得到相同的错误:
iptables -L
I've already upgrade my kernel with:
我已经升级了我的内核:
sudo apt-get update
sudo apt-get full-upgrade
I've tried to reboot the system but it didn't work.
我试过重新启动系统,但没有用。
How can I initiate the iptable filter?
如何启动 iptable 过滤器?
采纳答案by Jon
According to the Microsoft WSL page on github.com, iptables isn't supported.
根据 github.com 上的 Microsoft WSL 页面,不支持 iptables。
https://github.com/Microsoft/WSL/issues/767
https://github.com/Microsoft/WSL/issues/767
There is a uservoice page for requesting support at
有一个用于请求支持的用户语音页面