$ | >

Support iptables

Originally posted on Github around a year ago: https://github.com/Microsoft/WSL/issues/767

Not sure how feasible this is to implement, but I've found myself in a couple of situations where it would've come in quite useful.

344 votes
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)

We’ll send you updates on this idea

Ricky shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

29 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Thomas Braun commented  ·   ·  Flag as inappropriate

    Support ufw and iptables, and you made networking so much easier for everyone. People will love you even more

  • Carlos Guizar commented  ·   ·  Flag as inappropriate

    Cannot run Docker because of the same reason:

    Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.

  • Anonymous commented  ·   ·  Flag as inappropriate

    Intending to use ROS with WSL, but already having issues. I thought WSL was for developers?

  • Bryn Wolfe commented  ·   ·  Flag as inappropriate

    Can't run ROS2 crystal without this. It's interesting that `ros2 multicast` test works fine within WSL running Ubuntu 18.04 but I can't get `ros2 run demo_nodes_cpp listener` to see messages from a talker node. Can't even get `ros2 topic list` to see any messages. Works fine on an identical non-WSL system.

  • Anonymous commented  ·   ·  Flag as inappropriate

    Any update on this? I tried to install Db2 11.1 fp4 LUW, installation was success, but, I can´t create Db2 instance because port 5021 is reported as "on use", I tried to use iptables and I´m not allowed:
    root@DESKTOP-9P1157U:/# uname -a
    Linux DESKTOP-9P1157U 4.4.0-17763-Microsoft #253-Microsoft Mon Dec 31 17:49:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
    root@DESKTOP-9P1157U:/# ufw allow 5021/tcp
    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.

    root@DESKTOP-9P1157U:/# ufw status
    ERROR: problem running iptables: 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.

    root@DESKTOP-9P1157U:/# db2ls

    Install Path Level Fix Pack Special Install Number Install Date Installer UID
    ---------------------------------------------------------------------------------------------------------------------
    /opt/ibm/db2/V11.1 11.1.4.4 4 Fri Feb 1 00:38:16 2019 STD 0
    root@DESKTOP-9P1157U:/#

  • Adam Hoelscher commented  ·   ·  Flag as inappropriate

    There hasn't been enough of the iptables functionality implemented to allow Docker to run on WSL, which strikes me as a gaping hole when WSL is billed as a tool for developers.

← Previous 1

Feedback and Knowledge Base