I'm new to the forum and openvpn.
Using it as a client on a Odroid C2 64bit SBC, a bit like a rasp Pi3
I'm using an ipvanish server and their startup script
Code: Select all
client
dev tun
proto udp
remote XXXXXX.ipvanish.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip
ca ca.ipvanish.com.crt
verify-x509-name XXXXXXX.ipvanish.com name
auth-user-pass /etc/openvpn/passtore
comp-lzo
verb 3
auth SHA256
But the rest of the time its does not connect cleanly and a second tun device is created and used.
It is reconnecting every 60 mins, and after several hours reverts back to tun0 and the routing fails.
Looking back at journalctl, I can see tun0 in use then there are 12 unsuccessful push requests
Code: Select all
Apr 23 20:02:30 odroid64 ovpn-ipvanish_Franka21[620]: No reply from server after sending 12 push requests
Apr 23 20:02:30 odroid64 ovpn-ipvanish_Franka21[620]: SIGUSR1[soft,no-push-reply] received, process restarting
Apr 23 20:02:30 odroid64 ovpn-ipvanish_Franka21[620]: Restart pause, 2 second(
Is there anyway I can change the client script so that on a restart from a push failure all tun devices are pulled down, so that
it always uses tun0. ?
Also I'm left with two default routes which forces ntpd to use the vpn
TIA
Richard