Page 1 of 1

Openvpn resume primary remote host automatically ? HELP-ME

Posted: Sat Sep 30, 2017 3:52 pm
by spfdias
I have installed openvpn 2.2, and in my clients I have the following configuration:

proto udp
port 1194
dev tun


remote HOST1
remote HOST2

remote-random


client
pull

comp-lzo
keepalive 10 30
persist-key
persistence
float
tls-client

dh keys / dh1024.pem
ca keys / ca.crt
cert keys / SERVERX.crt
key keys / SERVERX.key


verb 3
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log
log-append /var/log/openvpn/openvpn.log


I have problems when host1 loses the connection, automatically openvpn goes to host2, I would like to know if it has any parameters for Openvpn to return to HOST1 when it is automatically available, without having to restart the openvpn service.

Re: Openvpn resume primary remote host automatically ? HELP-ME

Posted: Sat Sep 30, 2017 4:17 pm
by TinCanTech
spfdias wrote:
Sat Sep 30, 2017 3:52 pm
I would like to know if it has any parameters for Openvpn to return to HOST1 when it is automatically available
There are no options to auto-switch back to the first server if it comes back online.