Multiple OpenVPN connections at the same time?

Multiple OpenVPN connections at the same time?

avatar

Hi,
is there a way to open two or more OpenVPN connections to different customers at the same time?

Greetings
Daniel

All Comments (8)

avatar

This depends on OpenVPN itself, RDM simply calls the client..

A quick search gave me this which is really succinct, but indicates that it is possible

http://openvpn.net/index.php/open-source/faq/79-client/283-can-i-run-multiple-openvpn-tunnels-on-a-single-machine.html

Maurice

avatar

Hi,

thanks for you reply - but the problem is not the OpenVPN connection itself ... this works allready.
Maybe I have to write down the problem a little more exactly .

If I try to open another OVPN connection through RDM, it states that there is allready a VPNGUI running ... what is
indeed correct. So it may not pass auth-infos to the popup-credential-box.

Do you have further suggestions for that situation?
It would be very comfortable to handle this through RDM.

Greetings
Daniel
edited by dcapilla on 8/25/2014

avatar

Hi,
I suspect that when we invoke OpenVPN in command line and another one is already opened, we don't get the authentication dialog. Could you try to simulate this with the OpenVPN command line?

David Hervieux

avatar

Hi,

I am not sure, if I understand you right.
Do you mean: Try to open 2 SSL-VPN connections without RDM? That works allready.

Opening the vpn-connection through RDM is the problem, because the OVPN-GUI is allready opened,
if there is an active connection (so far - this should be correct).

If I try to open another connection through RDM, than it starts the OVPN-GUI again, because it needs to
auto-fill in the credentials ... so I am not doing anything through the commandline regarding RDM.

I have imported OVPN-Connections and the rest is RDM doing fine.


How may I open a OVPN connection through RDM without OVPN GUI/credential dialog - I did not found a way.


Regards
Daniel

avatar

Yes I mean open two VPN without RDM but with the command line (openvpn-gui.exe).

David Hervieux

avatar

This works allready. I think, the problem is, that RDM does not "generate" a script to start the VPN-Connection,
but auto fills in the credentials into the gui dialogue. If the gui dialogue is opened allready, it may not open up
another one.

avatar

Ok,
I will check but I'm not sure if can find the right dialog.

David Hervieux

avatar

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



Thomas