With OpenVPN running, there seems to be a problem with
resovconf.
The server cannot access external IP address, such as with
apt-get.
I have searched quite a few times for this problem. I have tried various options in the server.conf and I have followed this:
openvpn and resolv.conf.
But still no luck.
Basically, with OpenVPN running,
resolv.conf has no nameserver IP address, just the lines:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
If I restart the server with OpenVPN not running, then there is not problem and
resolv.conf has the nameserver IP address in it.
I have tried adding:
user nobody
group nobody
to the
server.conf file, just in case. But then the tunnel (
tun0) was not created.