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.
Leo Cast commented
We need iptables, pls.
Mad Chad commented
Need iptables for security. Very insecure not to have it, then again windows itself isn't all that secure anyway....
This is ESSENTIAL to run anything useful using the subsystem. What is even the point of having Linux on Windows if you can't run things on it that you **DON'T** want running on Windows?!
It is very need to run Docker on WSL, please prioritize this issue.
I can't use docker on the wsl without iptables support
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Recovery 450 MB 1024 KB
Partition 2 System 100 MB 451 MB
Partition 3 Reserved 16 MB 551 MB
Partition 4 Primary..........457 GB 567 MB
Partition 5 System..........488 MB 357 GB
Partition 6 Ext4 /boot......977 MB 358 GB
Partition 7 Ext4 /.............88 GB 359 GB
Partition 8 Ext4 /home....29 GB 447 GB
Move mount point of WSL to partion 6,7 and 8?
Duncan Watson commented
I also need iptables support in WSL. I feel crippled without my normal tools, looking for more workarounds now.
Still needed nearly 3 years after the OP, please look at this!
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.
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))
Also in need of this feature.
Need to work with docker-compose
David Smith commented
Also arrived here looking for Docker support in WSL.
Please and thanks.
Eduardo Grazziani commented
Still here... we want iptables. :)
need it to run docker-compose. Any update
brahim aymen commented
hope they trying to fix this
Raphael Leite commented
This is needed for proper docker-compose use.
Jan Reilink commented
Need this for `wsl sshuttle` usage in Windows 10