Control Restart Pause value on OpenVPN Service client (now 300 seconds)

How to customize and extend your OpenVPN installation.
Post Reply
lexios
OpenVpn Newbie
Posts: 4
Joined: Mon Jul 25, 2016 9:58 am

Control Restart Pause value on OpenVPN Service client (now 300 seconds)

Post by lexios » Fri Sep 15, 2017 5:45 am

Hello,

we recently updated the OpenVPN client on Windows to version 2.4.3.1601

We are installing the software with just the OpenVPN Service and TAP interface and connections are transparent to the end users.

We are now facing a problem where the Restart Pause is very high. In the past it was some seconds and the client was retrying.
Now the end users need to wait and they don't see anything happening leading them to believe that something is not working.

Is there a way to control this value via the registry or otherwise? Registry would be preferable.

Thu Sep 14 18:06:00 2017 Attempting to establish TCP connection with [AF_INETxx.xx.xx.xx:yyyy [nonblock]
Thu Sep 14 18:08:00 2017 TCP: connect to [AF_INET]xx.xx.xx.xx:yyyy failed: Connection timed out (WSAETIMEDOUT)
Thu Sep 14 18:08:00 2017 SIGUSR1[connection failed(soft),init_instance] received, process restarting
Thu Sep 14 18:08:00 2017 Restart pause, 300 second(s)


Thank you!
Alex

lexios
OpenVpn Newbie
Posts: 4
Joined: Mon Jul 25, 2016 9:58 am

Re: Control Restart Pause value on OpenVPN Service client (now 300 seconds)

Post by lexios » Thu Oct 05, 2017 5:34 am

Anyone? This was changed on a recent version so there must be a way to control this.

puneet
OpenVpn Newbie
Posts: 6
Joined: Wed May 30, 2018 11:00 pm

Re: Control Restart Pause value on OpenVPN Service client (now 300 seconds)

Post by puneet » Thu Jun 07, 2018 8:28 pm

Any update on this? I'm using v2.5 and would like to minimize the restart pause value to a minute (and make sure it loops for infinite).

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4291
Joined: Fri Jun 03, 2016 1:17 pm

Re: Control Restart Pause value on OpenVPN Service client (now 300 seconds)

Post by TinCanTech » Thu Jun 07, 2018 8:57 pm

See --connect-retry n [max] in the manual :mrgreen:

puneet
OpenVpn Newbie
Posts: 6
Joined: Wed May 30, 2018 11:00 pm

Re: Control Restart Pause value on OpenVPN Service client (now 300 seconds)

Post by puneet » Fri Jun 08, 2018 12:07 am

Great thanks! I added it to the conf file and its working...

Post Reply