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.
http://cloakandcode.com/articl…envpn-openmediavault.html
I also added these lines to the OVPN/CONF files on prod in an attempt to correct the DNS issue.
http://www.softwarepassion.com…th-openvpn-on-ubuntu-box/
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 2014
Sun Nov 27 13:21:42 2016 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sun Nov 27 13:21:42 2016 RESOLVE: NOTE: us-newyorkcity.privateinternetaccess.com resolves to 13 addresses
Sun Nov 27 13:21:42 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Nov 27 13:21:42 2016 [e6d1c2af1d05f1e65a897825ea3f56f2] Peer Connection Initiated with [AF_INET]209.95.50.98:1198
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.