When I connect to my work network over VPN, I gain access to the work network and can SSH to the servers, but lose access to the internet on my local machine.
I believe this to be an issue in finding the DNS server because I can ping both web addresses and IP addresses from the work server via SSH without issue, but from my local machine, I am unable to ping web addresses:
user@local_machine:~$ ping www.google.com
ping: www.google.com: Temporary failure in name resolution
but if I ping the IP address for www.google.com (172.217.169.36) it works without issue:
user@local_machine:~$ ping 172.217.169.36
PING 172.217.169.36 (172.217.169.36) 56(84) bytes of data.
64 bytes from 172.217.169.36: icmp_seq=1 ttl=114 time=34.1 ms
64 bytes from 172.217.169.36: icmp_seq=2 ttl=114 time=31.6 ms
64 bytes from 172.217.169.36: icmp_seq=3 ttl=114 time=30.7 ms
To fix this I have tried the following:
- Checking/unchecking the box marked "use this connection only for settings on this network." in Settings>Network>VPN>VIA_VPN>IPV4 & Settings>Network>VPN>VIA_VPN>IPV4
- Manually setting the DNS server in Settings>Network>VPN>VIA_VPN
- Forcing the machine to use the DNS server provided by the VPN using
sudo resolvectl domain via_vpn
- updating/upgrading everything
The software versions I am using are:
The VPN is the one I have been instructed to use by work, though support seems limited.