On Tue, 21 Sep 2021 10:37:10 -0400, Selva Nair <selva.n...@gmail.com> wrote:
>> What I don't understand is for how long I should wait until giving up after >> commanding a connection? >> > >Depending on your network, about 30 seconds max, probably. But it also >depends on whether you want it to try the next remote if one fails, how >many times to retry etc. > > >> >> 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? >> > >If you want to stop using the "send commands to running GUI" feature, send >the disconnect command. > >openvpn-gui.exe --command disconnect profilename Seems problematic since the profile is not connected... >See the readme in GUI repo. > >Or, add "connect-retry-max 1" to the config file. See OpenVPN manpage. > >Which is better depends on the use case. > >Selva Thanks Selva, I did not realise TinCanTech was referring to another place entirely... I think the ovpn file modification is in order here and wait for one minute max. The VPN server might be unavailable and that is why the connection fails. I assume that the connect-retry-max value is the number of tries before giving up, right? -- Bo Berglund Developer in Sweden _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users