I have been setting up an OpenVPN server on my Netgate SG-3100 router. I hope this makes syncronizing backups to a physically separate location easier. There are many walkthroughs to set up an OpenVPN server on a pfsense router and that works nicely. However, I am using Ubuntu 16.04 at work and setting up the client requires a bit more than doing the same on MacOS or Windows.
On Ubuntu, it is mandatory to update DNS information manually after establishing the VPN tunnel if you have opted for the setting to route all internet traffic originating from the client through the VPN server. If you do no update the DNA resolver information on the Ubuntu client, you can access the the VPN-internal network (in my case 10.0.0.0/24), but you cannot use hostnames. E.g. ping www.google.com will fail, but ping 188.8.131.52 will succeed. Similarly, your browser will not find any URLs. And browsing with IP-addresses ("http://184.108.40.206") is not very practical.
The default configuration on Ubuntu does not allow for this update of the DNS resolver to happen automatically for security reasons. There is a script included in the Ubuntu package of openvpn that updates this information (/etc/openvpn/update-resolv-conf). But in order for this to work one needs to
It gets even more complicated for the newest Ubuntu LTS 18.04 as the resolver update script that is installed by default is actually not functional anymore on 18.04. Instead, you need to manually install the openvpn-systemd-resolved update script (for details, check here: https://askubuntu.com/questions/1032476/ubuntu-18-04-no-dns-resolution-w...).