I am having connection problems, when I try to ping (to 8.8.8.8 for example) from Ubuntu or from Kali linux the following appears: 4 packets transmitted, 0 received, 100% packet loss, time 1071ms
I already tried temporarily disabling the Firewall to see if that would fix it, but I still don't have internet access I also tried various things that I found on forums, like this, but nothing seems to work
# Fix network issues
# Delete auto-generated files
[root @ PC-NAME user] # rm /etc/resolv.conf || true
[root @ PC-NAME user] # rm /etc/wsl.conf || true
# Enable changing /etc/resolv.conf
# Enable extended attributes on Windows drives
[root @ PC-NAME user] # cat << EOF> /etc/wsl.conf
[network]
generateResolvConf = false
[automount]
enabled = true
options = "metadata"
mountFsTab = false
EOF
# Use google nameservers for DNS resolution
[root @ PC-NAME user] # cat << EOF> /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
/etc/wsl.conf
[network]
generateResolvConf = false
Exit Linux WSL
cmd as admin:
wsl --shutdown
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig / flushdns
Windows Search> Network Reset
Restart Windows
Does anyone know what else could work? I don't know if it contributes to something because I have little knowledge of networks, but I tried to ping from cmd to the ip address that appears with ifconfig in kali linux and I did have ping, however, from the kali terminal to the ip address listed in Ethernet adapter vEthernet (WSL) there was no result