I'm trying to get OpenVPN to connect to PIA via the client. I need it to connect at startup as well. I got this working on my Raspberry Pi OMV install without any problems immediately. After testing there, I decided to move to my production NAS and this is giving me DNS issues.
Here's the directions that worked immediately on the Pi install. I replicated them on prod.
I also added these lines to the OVPN/CONF files on prod in an attempt to correct the DNS issue.
So basically, when I run OpenVPN with the OVPN file, it connects fine but then DNS fails immediately.
Sun Nov 27 13:21:42 2016 OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014Sun Nov 27 13:21:42 2016 NOTE: the current --script-security setting may allow this configuration to call user-defined scriptsSun Nov 27 13:21:42 2016 RESOLVE: NOTE: us-newyorkcity.privateinternetaccess.com resolves to 13 addressesSun Nov 27 13:21:42 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent thisSun Nov 27 13:21:42 2016 [e6d1c2af1d05f1e65a897825ea3f56f2] Peer Connection Initiated with [AF_INET]18.104.22.168:1198/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf
I did copy the OVPN to a CONF and point to it in the /etc/default/openvpn file to autostart by name. That's another issue, but I want to focus on the DNS issue first.