Hi,

On Tue, Feb 13, 2018 at 4:04 PM, David Sommerseth
<[email protected]> wrote:
> On 13/02/18 17:21, Илья Шипицин wrote:
>> personally, I would like something like "preconnect script" which will check
>> something and decide "we are in a place, where vpn is not needed"
>
> This feature has been requested numerous times.  And it is not needed.
> Really.  You have the management interface which can be done to resolve
> exactly that problem.
>
> - OpenVPN is configured with --management and --management-hold
>
> - Start the management client script
>   - polls for the OpenVPN management port to become available if it is not
>     getting a connection instantly
>   - once connected, it can do whatever queries/preparations needed
>   - sends the 'hold release' command on the management inteface
>
> - OpenVPN starts connecting to the remote server
>
> And if OpenVPN looses its connection, the management interface can capture
> that and do whatever it needs to do.  And if OpenVPN stops running/dies, this
> management client script can even detect that and do whatever is needed in
> this scenario as well - like restarting OpenVPN.
>
> In fact - you can even *modify* the remote and proxy settings on-the-fly if
> your management script figures that's even better.
>

On Windows that's how the GUI starts and controls openvpn. So if any
preconnect activity is required it should be done through the GUI.

Selva

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to