-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MTR / tracepath don't work #717
Comments
@amoiseiev - Thanks for trying out WSL and the feedback. Yes, we are aware that these tools currently don't work on WSL and we are looking into what we can enable. Meanwhile, please also help us prioritize by upvoting (or adding a new task) in the User Voice Page. It will be helpful if you can add specific comments about what you are looking for. |
Got the same issue. |
1 similar comment
Got the same issue. |
@netroby, @Cercaj - thanks for the feedback. As suggested previously, please head out to the user voice page and open a new ticket (upvote, if already exists) for |
its not fixed in latest bash build |
@gofirst2220 - Thanks for the (re)post. Yes, we are aware that both |
Would be awesome to get more networking stuff usable within WSL. So many ideas... |
👍 on supporting mtr -- winmtr does not support |
Still not working on build 1709 (16299.248) |
/Bump |
Same issue here... it would be definitely handy for Ops engineers for this to work. |
I am having this issue as well. |
The feature to make this work (AF_PACKET) is now being tracked in #1349, so this issue might as well be closed as a duplicate of that. |
This is sort of the landing zone for IP_MTU_DISCOVER, not AF_PACKET. The OP reported two things which is most unfortunate. |
Sadly, until these issues - lack of ability to mtr/traceroute/nmap (to name but a few) - are resolved, there's really no point using WSL (for me) at all. |
It appears that then running Bash for windows normally Permission is denied from opening IPv4 / IPv6 Sockets even with sudo / su. Running Bash on Ubuntu on Windows as Administrator (Right click Ubuntu Icon ->More-> Run as Administrator) and MTR works fine. |
In my case, MTR cannot display any ip(bash.exe run as admin). And traceroute does't work. |
I can use mtr with IPv4 if a run WSL with admin and run mtr with root, but I still can't mtr a IPv6 address. Menci@Menci-Surface:~$ mtr 2001:da8::666
mtr: Permission denied |
works for me when running as admin |
@Menci Hi. For me, mtr shows nothing when tracing with IPv4 even though running with admin permission in Windows and root permission in WSL as long as the Windows Firewall is active. But non-privileged Windows-native program like tracert / winmtr do work. When you make it work with IPv4, did you disable Windows Firewall? |
"Run as Admin" can be circumvented by avoiding setting Root permission is not necessary as long as But disabling Firewall is inevitable. The problem seems to be ICMP errors are not delivered to mtr properly ( |
really strange
|
Just installed WSL with Kali Linux Distro, Windows version 10.0.17134 Build 17134 |
Same thing here, |
Windows 10.0.18363.535 Ubuntu still doesn't work. |
I see you've added a label |
If " |
Appreciate the screencap, thanks. So... not this problem. You are getting an Spin up another issue, and include as many details about your Windows networking config (notably third party stuff). Also, for the data point, whether |
So to be clear, if using WSL1 then mtr, etc. you are out of luck because it does not have and never will have raw sockets so use WSL2 if you want that functionality? That's what I think @therealkenc said. |
at this point this issue can be closed as not fixable |
|
I can confirm, that mtr at least opens in admin mode, but does not send any requests properly:
It looks as if mtr is not able to get a proper network socket from the related WSL "kernel", also running the newest build. When trying to dig deeper (strace -f) it totally not works, looks like Microsoft is isolating the WSL to much from the native linux kernel and functionality. |
I request reopenning this issue as the issue reported by @Fabian123333 happened here too. WSL2 is not a option for me because NAT-IPv6. WSL1 cannot open the socket properly and this is a issue to be fixed. Thanks |
Just reinforcing, this issue cannot be considered fixed-in-wsl2 because wsl2 introduces a totally different network stack and its not suitable by any terms while wsl2 at least support bridge mode + ipv6 without any kind of nat. MTR while used to detect hop issues needs raw sockets since we use all 3 protocols to check connectivity issues and even ecmp and other kind of network propriety. |
upvote to get working hping |
Encountered this just now. mtr still not working. Here's my kernel version.
You can't close an issue by creating a different network stack. That's not how it works ;)
|
linux is network system, it should as base support network tools. |
tracert in powershell:
tracepath in wsl2 after resetting network, flushing dns and so on:
|
There are two different permissions issues, and only one of them seems to have a workaround. The first is that mtr in general doesn't run under wsl. The solution there is to start wsl w/ admin permissions ( The second issue is that even when run w/ elevated Windows and Linux privileges (as above), MTR still cannot get the permissions it needs if the target is an IPv6 host ( |
It would be super helpful for Ops engineers if you could make mtr and tracepath tools work.
Running as 'admin' with 'root privileges:
root@XXXX:~# mtr 8.8.8.8
mtr: unable to get raw sockets
root@XXXX:~# tracepath 8.8.8.8
IP_MTU_DISCOVER: Invalid argument
Windows Build number: 1607
The text was updated successfully, but these errors were encountered: