$ | >

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.

362 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 →

33 comments

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

    Still needed nearly 3 years after the OP, please look at this!

  • Anonymous commented  ·   ·  Flag as inappropriate

    I need this to run SQL Server 2017 in a docker container, with a volume mapping for the databases to a location on the host.

  • Mii commented  ·   ·  Flag as inappropriate

    Error starting daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule: (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.18.0.0/16 ! -o docker0 -j MASQUERADE: iptables: Invalid argument. Run `dmesg' for more information.
    (exit status 1))

  • 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.

← Previous 1

Feedback and Knowledge Base