Hi guys,
Thanks for reading this (and hopefully helping).
My setup is as follows:
I have a raspberry pi running raspbian jessie.
I have openvpn and have it setup to connect to TorGuard Vpn (Sweden). They have issued opvn config files to connect and I setup my username and password.
I also have a service running to ensure that thread is running on boot and if the command is terminated it will restart within 30 sec.
I have a fairly mediocre internet connection and it drops a couple times per day (shitty I know) when the pi boots it connects to the vpn and that great but if the internet drops off then the vpn tunnel fails to resolve the host-name. I tried adding keepalive 10 60 to the config but from what I understand its enabled by default. It also didn't help.
Here is the config file content:
Code:
client
dev tun
proto udp
remote swe.torguardvpnaccess.com 1912
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-auth ta.key 1
auth SHA256
cipher AES-128-CBC
remote-cert-tls server
auth-user-pass user.txt
comp-lzo
verb 1
reneg-sec 0
fast-io
# Uncomment these directives if you have speed issues
;sndbuf 393216
;rcvbuf 393216
;push "sndbuf 393216"
;push "rcvbuf 393216"
And here is the syslog:
Code:
May 21 22:30:56 raspberrypi systemd[1]: Starting Session c6 of user pi.
May 21 22:30:56 raspberrypi systemd[1]: Started Session c6 of user pi.
May 21 22:31:25 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:32:10 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:32:10 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:33:40 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:32:55 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:33:40 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:33:40 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:35:10 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:34:25 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:35:10 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:35:10 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:36:40 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:35:55 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:36:40 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:36:40 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:38:10 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:37:26 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:38:11 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:38:11 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:39:41 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:38:56 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:39:41 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:39:41 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:41:11 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:40:26 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:41:11 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:41:11 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:42:41 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:41:56 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:42:41 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
May 21 22:42:41 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun May 21 22:44:11 2017 [try http://www.rsyslog.com/e/2007 ]
May 21 22:43:26 raspberrypi openvpn[5470]: RESOLVE: Cannot resolve host address: swe.torguardvpnaccess.com: Temporary failure in name resolution
Here is the command to start openvpn:
Code:
/usr/sbin/openvpn --daemon --cd /etc/openvpn/ --config TorGuard.Sweden.Stockholm.ovpn
I'm self taught in linux cmd but understand the basic and prefer the using the command line.
Thanks for your help with this.