Openvpn resume primary remote host automatically ? HELP-ME

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
spfdias
OpenVpn Newbie
Posts: 1
Joined: Sat Sep 30, 2017 3:46 pm

Openvpn resume primary remote host automatically ? HELP-ME

Post by spfdias » Sat Sep 30, 2017 3:52 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Sat Sep 30, 2017 4:17 pm

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.

Post Reply