VPN issues with DNS in linux mint 19.3
by desmi from LinuxQuestions.org on (#51HS3)
So like a lot of people I am working from home at the moment. There are some internal work websites I can only reach from VPN.
On my old laptop, that runs Ubuntu 19.10 I can make the VPN connection (from the connection manager) and when its on I can only visit internal office websites. I found out I can use a checkbox "Use this connection only for resources on its network". When that is ON it works perfectly.
Now at the beginning of the year I got a new laptop and installed Linux Mint 19.3 (the latest I think).
When I add the VPN I get the same issue, I can only visit my internal office sites. But then I check the same checkbox, I cant visit any internal sites.
If I start openvpn from the commandline it connects, but I don't have DNS because I can only ping IPs from my office network but no websites are resolved.
I found sort of a workaround:
sudo ifmetric tun0 1000
This makes my VPN connection less important (I think?) and I can use both VPN and normal internet.
But after a while it kills my Wifi connection. I dont really understand why.
Anyway I can only work from home at the moment and I would really like to use my new much faster laptop.
I did find this bug and maybe its related, I'm not sure: https://bugs.launchpad.net/ubuntu/+s...n/+bug/1598665
I tried as much as I can, but at the moment I am stuck.


On my old laptop, that runs Ubuntu 19.10 I can make the VPN connection (from the connection manager) and when its on I can only visit internal office websites. I found out I can use a checkbox "Use this connection only for resources on its network". When that is ON it works perfectly.
Now at the beginning of the year I got a new laptop and installed Linux Mint 19.3 (the latest I think).
When I add the VPN I get the same issue, I can only visit my internal office sites. But then I check the same checkbox, I cant visit any internal sites.
If I start openvpn from the commandline it connects, but I don't have DNS because I can only ping IPs from my office network but no websites are resolved.
I found sort of a workaround:
sudo ifmetric tun0 1000
This makes my VPN connection less important (I think?) and I can use both VPN and normal internet.
But after a while it kills my Wifi connection. I dont really understand why.
Anyway I can only work from home at the moment and I would really like to use my new much faster laptop.
I did find this bug and maybe its related, I'm not sure: https://bugs.launchpad.net/ubuntu/+s...n/+bug/1598665
I tried as much as I can, but at the moment I am stuck.