I have a strange issue. If I suspend Ubuntu and then wake it up, it will successfully connect to a WiFi/wired network, but all requests will fail. My browser won't return anything, ping google.com or ping 8.8.8.8 get 100% packet loss. However, if I then restart Ubuntu, it starts working again.
This issue first started when I ran an install script for a VPN I was using (PrivateVPN), which seems to have ruined my network settings. Any idea what is happening here? How can I fix this problem? I've tried sudo systemctl restart networking, sudo systemctl restart NetworkManager, sudo resolvconf -u etc, and none of them fix the issue. I also don't think it's a DNS issue, because pinging 8.8.8.8 doesn't work.