Can ping router but not the internet on Ubuntu
by thethinker from LinuxQuestions.org on (#5NHT5)
I'm running Ubuntu 20.04 (actually Xubuntu) on a Mac Book Pro, and I'm gone from a totally functional network setup (wired and wireless) to a situation where I can reach my router but can't get anything from the internet. This seemed to happen spontaneously - I did install a VPN (ProtonVPN), but I had a working setup for at least a few days before it broke. Uninstalling the VPN had no effect.
I don't have any network access on that machine, so I'll detail things I know/have tried:
* The problem persists on both wireless, wired, and all other networks I have tried.
* I can ping my router
* I can't ping or curl www.google.com (Temporary failure in name resolution)
* I *can* ping 8.8.8.8.
* I can't ping other computers on my network, but they CAN ping this machine.
* I'm dual booting OSX, and that OS has no trouble with the internet.
* I tried killing the firewall, a la (https://askubuntu.com/questions/9217...ct-to-internet)
Code:sudo iptables-save > /root/firewall.rules; iptables -F; iptables -X; iptables -t nat -F; iptables -t nat -X; iptables -t mangle -F; iptables -t mangle -X; iptables -P INPUT ACCEPT; iptables -P FORWARD ACCEPT; iptables -P OUTPUT ACCEPT; sudo ufw disableAs far as I can tell (sudo ufw status), the firewall is inactive, problem persists.
* I tried monkeying around with /etc/resolv.conf (which is linked to /run/systemd/resolve/stub-resolv.conf). It currently says
Code:nameserver 127.0.0.53
options edns0 trust-adI tried various things (127.0.1.1, 8.8.8.8), no effect.
* I've tried various restarting of network manager.
* I don't have trace installed (and no internet to apt it in!), but I can do mtr 8.8.8.8. I don't quite know what to look for, but it hits my router before bouncing around to 8.8.8.8, so that seems right.
Anyone have anything else for me to try? This is getting frustrating!
I don't have any network access on that machine, so I'll detail things I know/have tried:
* The problem persists on both wireless, wired, and all other networks I have tried.
* I can ping my router
* I can't ping or curl www.google.com (Temporary failure in name resolution)
* I *can* ping 8.8.8.8.
* I can't ping other computers on my network, but they CAN ping this machine.
* I'm dual booting OSX, and that OS has no trouble with the internet.
* I tried killing the firewall, a la (https://askubuntu.com/questions/9217...ct-to-internet)
Code:sudo iptables-save > /root/firewall.rules; iptables -F; iptables -X; iptables -t nat -F; iptables -t nat -X; iptables -t mangle -F; iptables -t mangle -X; iptables -P INPUT ACCEPT; iptables -P FORWARD ACCEPT; iptables -P OUTPUT ACCEPT; sudo ufw disableAs far as I can tell (sudo ufw status), the firewall is inactive, problem persists.
* I tried monkeying around with /etc/resolv.conf (which is linked to /run/systemd/resolve/stub-resolv.conf). It currently says
Code:nameserver 127.0.0.53
options edns0 trust-adI tried various things (127.0.1.1, 8.8.8.8), no effect.
* I've tried various restarting of network manager.
* I don't have trace installed (and no internet to apt it in!), but I can do mtr 8.8.8.8. I don't quite know what to look for, but it hits my router before bouncing around to 8.8.8.8, so that seems right.
Anyone have anything else for me to try? This is getting frustrating!