petrovich Hello! There are one OpenVPN Server and two ISP-link in our network. OpenVPN is published through both ISPs and if one of them is failed another one become active. In order to give OpenVPN-client ability to reconnect automatically OpenVPN Server has two public ip-addresses each of them is related with different ISP. However, in the same time only one IP-address is available. We write the following command to client.ovpn: remote ip-address1 (the main channel) remote ip-address2 (backup channel) As a result, almost everything is ok so if the main channel become unavailable openvpn client connects automatically to the backup channel. However, in order to reconnect openvpn client have to spend about 60 sec which is too long. Does any methods exist which can reduce such time? Maybe is there any timers options in config file which could be tuned?
Traffic petrovich wrotereconnect openvpn client have to spend about 60 sec which is too long. Does any methods exist which can reduce such time? Maybe is there any timers options in config file which could be tuned?See --keepalive in The Manual v23x
petrovich Keepalive options allow to maintain VPN and if there isn't connections between ends of tunnel it will be shutdown. So, tuning the keepalive parameter allows to make fail-detection faster. However, when tunnel-fail occurs OpenVPN-client tries to reconnect to first IP again which doesn't work and only after that it try to connect to backup server. And time spent to connect to main IP-address is about 60 sec which is too long for us. How can this time be reduced? Is there special options which allow to tune this duration?
Traffic The only option I am aware of for what you are asking is to modify the source code and compile your customisation.