OpenVPN GUI Change to allow for Multiple Connections

OpenVPN GUI Change to allow for Multiple Connections

0 vote

avatar
thomas09
Disabled

Upgrade to a version of "OpenVPN-gui" that is at least 11.8.0.0 this will allow for additional command line flags to allow for connect and disconnect.
The Commit... and details:
https://github.com/OpenVPN/openvpn-gui/pull/188
Merged to the main branch. April 23rd https://github.com/OpenVPN/openvpn-gui/pull/230
Until Devolutions fixes the OpenVPN Plugin:
Create a Custom VPN type with the Correct Data.
HOST: Whatever name(Its only displayed)
Executable: C:\Program Files\OpenVPN\bin\openvpn-gui.exe
Opening arguments: --command connect SOME_PROFILE_DEFINED_IN_CONFIG_DIR
Closing arguments: --command disconnect SOME_PROFILE_DEFINED_IN_CONFIG_DIR
Tested... works. against:
OpenVPN 2.4.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on May 11 2017
library versions: OpenSSL 1.0.2k 26 Jan 2017, LZO 2.10
Windows version 6.2 (Windows 8 or greater) 64bit

All Comments (14)

avatar

Hello,

Sorry, but I am not sure to understand your feature request.

Could you elaborate on this request please?

Best regards,

Jeff Dagenais

avatar

Sure,
The current OpenVPN Add-on (2.5.6.0) uses the OpenVPN-gui.exe to initiate a connection. Unfortunately, when you try to initiate an additional connection, the OpenVPN Add-on tries to open a NEW instance of the OpenVPN-gui.exe, then the application complains that its already open, and the connection fails.

The reason for this is due to the way your opening the connection using OpenVPN-GUI.exe It wont allow multiple instances of the GUI to run.

There has been an update that was MERGED into the source tree for OpenVPN-GUI that allows a command to be sent to the new process that will open a new connection, and more importantly close a SINGLE connection, instead of the killing of the process that you currently do.

My REQUEST:
I would like to have the NEW Feature in the OpenVPN Add-on to allow for this new connection parameter so that we can establish more than one connection, and close different connections, while leaving other connections still connected.


The details of the Modification to the code is located here: https://github.com/OpenVPN/openvpn-gui/pull/188

It was Added to the MAIN source tree here: https://github.com/OpenVPN/openvpn-gui/pull/230


Test Executable is here: https://github.com/selvanair/openvpn-gui/releases/tag/v11_testing1


Thomas

avatar

Hello,

This is indeed a really nice feature to have. It has been added to the todo list of our engineering department.

I will notify you as soon as I have any update on that matter.

Best regards,

James Lafleur

avatar

Hello,

Thank you for your patience on the implementation of this new feature. That being said, our engineering department would like to know the following:

1- What is the command line you are using to open two OpenVPNs inside the same executable?

2- What is the command line you are using to close only one of these OpenVPNs without closing the other?

Best regards,

James Lafleur

avatar

James, see my post from yesterday in the Addon section;
https://forum.devolutions.net/topic31417-openvpn-allow-multiple-active-profiles.aspx

I did not know it's now possible to also send multiple commands to an active openvpn-gui. Great find thomas09!
The most elegant option might be to make use of the OpenVPN Interactive Service, that gives RDM greater control of the VPN's (not just a 'send command and hope the GUI works and picks it up') but calling openvpn-gui multiple times would at least give us the option to open multiple vpn connections at once plus this way the Gui icon in the systray also shows the active VPN connections.

Multiple connections would be a very welcome addition, currently we have to constantly switch active VPN's when working on multiple sites at once

An excerpt;

It is necessary to add more TAP interfaces, which can easily be achieved by running;
%programfiles%\TAP-Windows\bin\addtap.bat
The OpenVPN will just use any available TAP interface, but it is also possible to specify a specific interface by using the dev-node operand
I presume RDM launches openvpn-gui.exe --connect somefile.ovpn --config_dir "somedir"
This does not allow for multiple instances.
If we want to achieve multiple active VPN-connection we would have to start openvpn.exe like such;
openvpn.exe --config somepath\somefile.ovpn --auth-user-pass somepath\somefile.txt
Where somefile.txt (if used) has the username on the first line, and the password on the second line.
It is however necessary to run this with elevated rights, and the commandline window remains open.
The Open-VPN GUI bypasses this by addressing the OpenVPN interactive service;
https://community.openvpn.net/openvpn/wiki/OpenVPNInteractiveService (bit outdated info)

avatar

Hi Devolutions Team,

Are there any developments on this feature request? I had made a similar request last year (WIN-899).

Thanks

avatar

@pc02,

Could you provide us more information's on what you are trying to accomplish with OpenVPN?

Best regards,

Jeff Dagenais

avatar

Hello everyone,

So great news, OpenVPN just released the functionality necessary for us to make multiple connections work. It will be included in the 2020.2 release at the end of next month.

Note that for it to work properly, you will need version 11.15.0.0 of the OpenVPN GUI.

Regards

Jonathan Del Signore

avatar

Did you fix this?
RDM fails to open new OpenVPN connection if I have OpenVPN GUI already open.

avatar

Hello,

Yes multiple connections are now supported, can you please make sure you have this option checked in File -> Options -> Types -> VPN :

forum image

Regards

Jonathan Del Signore

avatar

Thank you - worked

avatar

Only problem now is that the OpenVPN connection is not fully ready when it tried to make the rdp connection.
Can I set a delay or make it do a ping check again?

avatar

Hello,

Have you tried to change the VPN default pause under File -> Options -> Types -> VPN?
It's the first option at the top.

Best regards,

Jeff Dagenais

avatar

thank you - it is working but if would be great if I could set it lower and have it connect as soon as it respond to ping