On Tue, 21 Sep 2021 13:15:53 +0000, tincantech via Openvpn-users
<openvpn-users@lists.sourceforge.net> wrote:

>> I have noted that the OpenVPN GUI application runs a very long time (maybe
>>
>> forever) if there is no connection to the server, seems to restart every
>>
>> minute...
>>
>> Is there a way to make it stop if it does not connect within a certain 
>> (short)
>>
>> time?
>>
>> Or can I stop the ongoing connect attempt when it seems to fail? I.e. no
>>
>> connection within say 60 seconds then kill the running connection attempt.
>>
>> In the GUI itself (when I run manually on Windows) I can click "Disconnect" 
>> to
>>
>> make it stop...
>>
>
>See --connect-retry-max in the manual.

Which means the OpenVPN main manual, NOT the OpenVPN-GUI manual....

So I had to edit the ovpn file and add this into it:
connect-retry-max 1

Whereupon it fails after 60 seconds instead of starting over like it did
previously.

Thanks!


-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to