解决wsl kali使用ping返回ping: socket: Operation not permitted

参考https://www.cnblogs.com/276815076/p/5569400.html

hetang@LAPTOP-A1:~$ ping 192.168.2.157
ping: socket: Operation not permitted

hetang@LAPTOP-A1:~$ sudo chmod u+s /usr/bin/ping
[sudo] password for hetang:

hetang@LAPTOP-A1:~$ ls -l /usr/bin/ping
-rwsr-xr-x 1 root root 65272 Aug  4 00:53 /usr/bin/ping

hetang@LAPTOP-A1:~$ ping 192.168.2.157
PING 192.168.2.157 (192.168.2.157) 56(84) bytes of data.
64 bytes from 192.168.2.157: icmp_seq=1 ttl=64 time=109 ms
64 bytes from 192.168.2.157: icmp_seq=2 ttl=64 time=46.0 ms
^C
--- 192.168.2.157 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 46.035/77.294/108.553/31.259 ms

 

你可能感兴趣的:(解决wsl kali使用ping返回ping: socket: Operation not permitted)