Reconnect or next server when connection lost

How to customize and extend your OpenVPN installation.

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

Post Reply
gurabli
OpenVpn Newbie
Posts: 3
Joined: Mon Mar 09, 2015 2:40 pm

Reconnect or next server when connection lost

Post by gurabli » Mon Mar 09, 2015 2:46 pm

Hi,

I have a vpn subscription and I'm using openVPN client to connect to the server(s) over UPD.
Someties it happens that the server goes offline, or the connection is lost for some reason, and then my real IP is exposed. Could you help me how can I configure that:

- if a connection is lost, openVPN immediatly tries to reconnect, but if fails, then moves to the next server I have configures, and goes on like this

I believe it will be related to the "--remote host" option, but not sure how to configure the check when a connection is lost -> proceed with retry lets say 5 times, if failed, proceed to the next server address.

Many thanks!

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Reconnect or next server when connection lost

Post by Traffic » Tue Mar 10, 2015 12:46 pm

gurabli wrote:I have a vpn subscription
Out of curiosity .. which provider is this ?

gurabli
OpenVpn Newbie
Posts: 3
Joined: Mon Mar 09, 2015 2:40 pm

Re: Reconnect or next server when connection lost

Post by gurabli » Tue Mar 10, 2015 12:53 pm

Traffic wrote:
gurabli wrote:I have a vpn subscription
Out of curiosity .. which provider is this ?
It is Earthvpn.
Any ideas how can I achieve this?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Reconnect or next server when connection lost

Post by Traffic » Tue Mar 10, 2015 2:59 pm

As you are paying earthvpn for privacy .. have you asked earthvpn why they apparently cannot fulfill their contract to you by providing you with the service you pay for ?

Post Reply