【问题标题】:Iptables v1.6.1 can't initialize iptables table `filter' Ubuntu 18.04 Bash Windowsiptables v1.6.1 无法初始化 iptables table `filter' Ubuntu 18.04 Bash Windows
【发布时间】:2018-11-29 11:49:20
【问题描述】:

我正在从 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

我需要打开一些端口:

sudo ufw allow 22/tcp

但我收到以下错误:

错误:initcaps
[Errno 2] iptables v1.6.1: 无法初始化 iptables table `filter': Table 不存在(您需要 insmod 吗?)
也许 iptables 或您的内核需要升级。

我输入同样的错误:

iptables -L

我已经升级了我的内核:

sudo apt-get update
sudo apt-get full-upgrade

我尝试重启系统,但没有成功。

如何启动 iptable 过滤器?

【问题讨论】:

    标签: bash ubuntu filter firewall iptables


    【解决方案1】:

    根据 github.com 上的 Microsoft WSL 页面,不支持 iptables。

    https://github.com/Microsoft/WSL/issues/767

    有一个用于请求支持的用户语音页面

    https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/32025199-support-iptables

    【讨论】:

    • 我注意到 github.com 上的 WSL 页面说 WSL 现在在最新版本中支持 iptables,但很明显有些人仍然遇到问题。
    • 是的,我正在尝试在我的 Windows Bash 上运行 docker,但我遇到了同样的错误。
    猜你喜欢
    • 2013-09-16
    • 2021-02-11
    • 2021-02-08
    • 1970-01-01
    • 2015-09-29
    • 2014-03-25
    • 1970-01-01
    • 2016-11-24
    • 2014-05-01
    相关资源
    最近更新 更多