You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used, returns: # ping google.com
ping: icmp open socket: Socket type not supported
Reacted by Carl Patenaude-Poulin, Thibautg16, Jake Detels, Dan Tilden, Zohaib Sharani, Giles Birch, you, Denis Akhiyarov, Jozef Izso, Victor Moura Cortez and 41 more
Reacted by Denys Vitali, Andreas Mosti, Guillermo C. Martínez, Christopher Malau, Manuel Kräuter, Aleksandr, liuxiao and Mohammad Reza Taesiri
Reacted by inxomnyaa, Jylee, Christopher Malau, Manuel Kräuter, Matthew Pecarina and Michael Guntsche
fheljeGareth Coles (@gdude2002) For me network is working, I can sucessfully download content from internet for example: wget google.com but what is not working is ping command and some other network related stuff.
I confirm that requests out of a normal, SYN/SYN-ACK/ACK TCP connection (transport -UDP- and network -ICMP even locally- layers on ISO model) are not working.
Normally it is looking good to disallow communications at the network level and below, but for internal developments, it should be considered as back-end business related.
Reacted by Patryk Golus, Grzegorz Szostak and Zack Sargent
Same issue when using 14316 in latest Parallels on latest Mac OS X.
Inside bash, network doesn't seem to work. DNS resolution fails, ping a fixed address doesn't work:
root@localhost:~# ping google.com
ping: unknown host google.com
root@localhost:~# ping 8.8.8.8
ping: icmp open socket: Socket type not supported
The same commands work inside cmd.exe.
This means that apt-get doesn't work so I can't install any additional packages.
I tried both "Shared Network" and "Bridged Network" networking modes of Parallels.
It might be deficiency of (or incompatibility with) Parallel's network driver.
Happy to provide more info from within bash (given that network stack is probably emulated in WSK I wouldn't know what behavior standard linux network debugging techniques is buggy but expected vs. unexpectedly buggy).
Krzysztof Kowalczyk (@kjk) It loos like there are two different issues, one is with DNS resolutions, and it is easily solved, just add a DNS server to /etc/resov.conf, it shoud look like:
ICMP is currently not supported, which is why "ping" fails. We realize that this makes it inconvenient to diagnose possible networking issues, and are working to address this.
Reacted by Yngvar Johnsen, Thibautg16, Szymon, Sebastian Metzger, Václav Brožík, jokimina, Vincent de Smet, Ronan Gaillard, Olumide Awofeso, stimpy and 55 more
Reacted by Timothée Crozat, Paco Wensveen, ZHU HAIHUA, Jack Hammons, Phil Ricketts, Duncan Steenburgh, Cysioland, andrea denisse, RigelO, Shukhrat Mukimov and 19 more
Yes, any network tools that rely on NETLINK or ICMP do not currently work and we are aware of this. We will be tracking\prioritizing which features to light up next by looking at the feedback provided at the wpdev portal. We appreciate your feedback and please make sure to provide it through the wpdev portal as well. Looks like there is already a post tracking this which you can up vote (or add a new one):
ping has been working for several months, I think since the first creators update.
WSL is still not perfect, but it's pretty impressive to me that compiled Linux binaries can use the Windows kernel in place of the Linux kernel and most of it works.
You can always run a VM if WSL doesn't deliver what you need. I'm eager for when WSL support is complete - no bugs at all. Personally I already find it less frustrating than trying to build Linux tools to run natively on Mac OS X, and it's getting better with each release.
Still cannot run ping even if run-as admin mode until sudo it:
Microsoft Windows [Version 10.0.16299.726]
msmirnov@smirnov:/mnt/c/Windows/System32$ ping www.ru
ping: socket: Operation not permitted
msmirnov@smirnov:/mnt/c/Windows/System32$ sudo ping www.ru
PING www.ru (217.112.35.75) 56(84) bytes of data.
64 bytes from v76-u.valuehost.ru (217.112.35.75): icmp_seq=1 ttl=53 time=14.6 ms
64 bytes from v76-u.valuehost.ru (217.112.35.75): icmp_seq=2 ttl=53 time=15.10 ms
64 bytes from v76-u.valuehost.ru (217.112.35.75): icmp_seq=3 ttl=53 time=14.5 ms
user@localhost:~$ for n in {1..5}; do ping 1.1.1.1; done
ping: socket: Operation not permitted
ping: socket: Operation not permitted
ping: socket: Operation not permitted
ping: socket: Operation not permitted
ping: socket: Operation not permitted
AFTER:
user@localhost:~$ sudo setcap cap_net_raw+p /bin/ping
[sudo] password for user:
user@localhost:~$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=50 time=46.2 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=50 time=45.0 ms
Activity
[-]ping not working[/-][+]Ping is not working[/+]fhelje commentedon Apr 7, 2016
Have the same issue network doesn't work, running windows in parallels on a mac
gdude2002 commentedon Apr 7, 2016
I got networking working on mine by disabling my AV's firewall, but it doesn't fix
ping.patryk9200 commentedon Apr 7, 2016
fhelje Gareth Coles (@gdude2002) For me network is working, I can sucessfully download content from internet for example: wget google.com but what is not working is ping command and some other network related stuff.
jolibert commentedon Apr 7, 2016
I confirm that requests out of a normal, SYN/SYN-ACK/ACK TCP connection (transport -UDP- and network -ICMP even locally- layers on ISO model) are not working.
Normally it is looking good to disallow communications at the network level and below, but for internal developments, it should be considered as back-end business related.
kjk commentedon Apr 7, 2016
Same issue when using 14316 in latest Parallels on latest Mac OS X.
Inside bash, network doesn't seem to work. DNS resolution fails, ping a fixed address doesn't work:
The same commands work inside cmd.exe.
This means that
apt-getdoesn't work so I can't install any additional packages.I tried both "Shared Network" and "Bridged Network" networking modes of Parallels.
It might be deficiency of (or incompatibility with) Parallel's network driver.
Happy to provide more info from within bash (given that network stack is probably emulated in WSK I wouldn't know what behavior standard linux network debugging techniques is buggy but expected vs. unexpectedly buggy).
nanogennari commentedon Apr 8, 2016
Krzysztof Kowalczyk (@kjk) It loos like there are two different issues, one is with DNS resolutions, and it is easily solved, just add a DNS server to
/etc/resov.conf, it shoud look like:After that
apt-getshoud work.The second issue is with ping, i'm having the same problem here:
eternelpanic commentedon Apr 8, 2016
Traceroute is no better:
root@localhost:~# traceroute www.internode.on.net
traceroute to www.internode.on.net (150.101.140.197), 30 hops max, 60 byte packets
setsockopt IP_MTU_DISCOVER: Invalid argument
SvenGroot commentedon Apr 9, 2016
ICMP is currently not supported, which is why "ping" fails. We realize that this makes it inconvenient to diagnose possible networking issues, and are working to address this.
patryk9200 commentedon Apr 9, 2016
Sven Groot (@SvenGroot) Thanks for info!
arjennienhuis commentedon Apr 11, 2016
Why is this closed?
gdude2002 commentedon Apr 11, 2016
..huh, I didn't get an email for this.
Is it fixed? I still get the same behaviour.
sunilmut commentedon Apr 11, 2016
Yes, any network tools that rely on NETLINK or ICMP do not currently work and we are aware of this. We will be tracking\prioritizing which features to light up next by looking at the feedback provided at the wpdev portal. We appreciate your feedback and please make sure to provide it through the wpdev portal as well. Looks like there is already a post tracking this which you can up vote (or add a new one):
https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13383789-enable-network-interface-enumeraration
arjennienhuis commentedon Apr 11, 2016
Closing the issue is still a bad idea and also a bit rude.
A nicer way is to tag it as 'wishlist', 'feature' or even 'backlog'
64 remaining items
karpulix commentedon Apr 29, 2017
Sunil Muthuswamy (@sunilmut) Thank you! I'm update system and it problem resolved.
brtmrl commentedon May 31, 2017
No need to update. Login as an administrator not as a guest.
diveyez commentedon Jan 12, 2018
WSL has been nothing but problems.
ryanerwin commentedon Jan 13, 2018
diveyez (@diveyez)
ping has been working for several months, I think since the first creators update.
WSL is still not perfect, but it's pretty impressive to me that compiled Linux binaries can use the Windows kernel in place of the Linux kernel and most of it works.
You can always run a VM if WSL doesn't deliver what you need. I'm eager for when WSL support is complete - no bugs at all. Personally I already find it less frustrating than trying to build Linux tools to run natively on Mac OS X, and it's getting better with each release.
spacemishka commentedon Mar 6, 2018
I am trying to setup WSL but getting still errors on ping
user@nb-999:~$ ping google.de ping: unknown host google.de user@nb-999:~$ ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. ping: sendmsg: Invalid argument ping: sendmsg: Invalid argumentresolv.conf:
user@nb-999:~$ cat /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4aseering commentedon Mar 6, 2018
Hi spacemishka -- what version/build of Windows are you running? (Type
verat a Windows Command Prompt.)This is a common issue with older releases of Windows 10, but a fix was released via Windows Update.
mivsmirnov commentedon Nov 15, 2018
Hi!
Still cannot run ping even if run-as admin mode until sudo it:
Microsoft Windows [Version 10.0.16299.726]
msmirnov@smirnov:/mnt/c/Windows/System32$ ping www.ru
ping: socket: Operation not permitted
msmirnov@smirnov:/mnt/c/Windows/System32$ sudo ping www.ru
PING www.ru (217.112.35.75) 56(84) bytes of data.
64 bytes from v76-u.valuehost.ru (217.112.35.75): icmp_seq=1 ttl=53 time=14.6 ms
64 bytes from v76-u.valuehost.ru (217.112.35.75): icmp_seq=2 ttl=53 time=15.10 ms
64 bytes from v76-u.valuehost.ru (217.112.35.75): icmp_seq=3 ttl=53 time=14.5 ms
gbminnock commentedon Dec 11, 2018
works fine as others have said when I run the Kali app as Administrator.
ION28 commentedon Dec 27, 2018
for anyone still running into this issue, the below command fixed it for me:
sudo chmod u+s `which ping`Update ping (#128)
sxpistols commentedon Feb 14, 2019
thank you, it worked for me
harryqt commentedon Jun 1, 2020
Installed Ubuntu 20.04 on WSL 2, ran into the same issue. But that solution worked. 👍
fuomag9 commentedon Jun 5, 2020
Brand new windows 2004 kali wsl2 install, this fixed it for me as well, thanks!
mspncp commentedon Sep 7, 2020
FWIW: according to the manual page, it is sufficient to set the CAP_NET_RAW capability. The following command worked for me:
Whether this method is safer than 'set-uid root' or not, I can't tell.
toor11 commentedon Jul 6, 2021
That is a permission issue:
Before :
AFTER: