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.
Last login: Sun Nov 27 12:59:11 2016 from 192.168.X.X
root@omv:~# service openvpn stop
Stopping virtual private network daemon: nyc.
root@omv:~# curl -4 icanhazip.com
73.47.110.103
root@omv:~# cd /etc/openvpn/
root@omv:/etc/openvpn# openvpn nyc.ovpn
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 WARNING: file 'login.txt' is group or others accessible
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 LZO compression initialized
Sun Nov 27 13:21:42 2016 RESOLVE: NOTE: us-newyorkcity.privateinternetaccess.com resolves to 13 addresses
Sun Nov 27 13:21:42 2016 UDPv4 link local: [undef]
Sun Nov 27 13:21:42 2016 UDPv4 link remote: [AF_INET]209.95.50.98:1198
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
Sun Nov 27 13:21:44 2016 TUN/TAP device tun0 opened
Sun Nov 27 13:21:44 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Nov 27 13:21:44 2016 /sbin/ifconfig tun0 10.56.10.6 pointopoint 10.56.10.5 mtu 1500
Sun Nov 27 13:21:44 2016 /etc/openvpn/update-resolv-conf tun0 1500 1558 10.56.10.6 10.56.10.5 init
dhcp-option DNS 209.222.18.222
dhcp-option DNS 209.222.18.218
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/run/resolv.conf
Sun Nov 27 13:21:44 2016 Initialization Sequence Completed
^Z
[1]+ Stopped openvpn nyc.ovpn
root@omv:/etc/openvpn# curl -4 icanhazip.com
curl: (6) Couldn't resolve host 'icanhazip.com'
root@omv:/etc/openvpn#
Alles anzeigen
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.