OpenVPN AddOn

avatar

Hi,

this AddOn seems not to use the Protocol I select in the configuration.
I select TCP but the AddOn tries to open the connection via UDP.

Can you add the ability to select one configuration-file out of the config-folder of OpenVPN?

Best regards,

Manuel Marhold
SoftChip EDV-Systeme GmbH
Gutenbergstr. 25
49479 Ibbenbueren GERMANY
Fon: +49 5451-54703-40
Fax: +49 5451-54703-22
Web: www.softchip-edv.de
edited by SoftChip on 2/8/2010

Hoevermann IT-Gruppe
www.hoevermann-gruppe.de

All Comments (62)

avatar

I will be working on a rebuild of the user interface soon for the OpenVPN AddOn, and I will add the config file option back when I do that. I will take a look at the TCP/UDP issue later today and report what I find.
edited by jskuby on 2/8/2010

avatar

SoftChip,

Are you setting the protocol globally or in the host config dialog? Just wondering because it's writing the config fine, but I wonder if we're running into some default/overridden behavior of OpenVPN because of the connection tags the hosts are wrapped in.

avatar







Hi, jskuby.

I'm also having this problem, and interested in it being fixed. In my situation, I am importing an existing and working .opvn config file into the host configuration dialog. Everything looks correct, but when connecting, the displayed connection text shows it is attempting the link with UDP.

Thanks for your help/efforts. It is greatly appreciated.

avatar

I believe I have fixed the protocol issue. Can you try this build? I'll be (re)adding the config selection this weekend.

OpenVPNAddOn 1.1.0.3

avatar

Hi jskuby,

sorry, I've been out of office.

First: This is a great AddOn, I already had the idea myself, but now I don't have to do this, you just did it! Thank you!

I don't know where I can set the protocol globally, i cannot find settings for you AddOn. But the new version works fine, now it uses TCP as protocol. Great work.

I have one connectionfile which uses a .p12 as "pkcs12" but this is written into "Additional Parameters". Is there any ability to use this files?

I have one more question: If I want to use more than one connection at one time, the open-vpn-gui doen't allow this. Is there the ability to user openvpn directly, without using the gui?

Manuel Marhold
SoftChip EDV-Systeme GmbH
Gutenbergstr. 25
49479 Ibbenbueren GERMANY
Fon: +49 5451-54703-40
Fax: +49 5451-54703-22
Web: www.softchip-edv.de

Hoevermann IT-Gruppe
www.hoevermann-gruppe.de

avatar

When I said globally, I probably misspoke. I should have said in the main OpenVPN AddOn session config (not in the host), but it's good to know 1.1.0.3 fixed the issue. I should be able to add the pkcs12 support this weekend while I'm working on the other tweaks/features. I'll also look into opening multiple connections via the command line and possibly putting a tray icon while it's connected, so there's some indication other than in RDM that the connection is active.

avatar

Version 1.1.0.3 worked perfectly for me. Both my tcp and udp connections work correctly now. Thank you!
edited by kirel on 2/12/2010

avatar

Hi jskuby,

thar would be great.
I also tried to use the gui to open more than one connection but I always get the errormesasge that the gui has already been started. So I think you have to use openvpn directly without the gui.

But have a try ;)

Hoevermann IT-Gruppe
www.hoevermann-gruppe.de

avatar

Hi,

I've been trying to get this addon to work as I currently use OpenVPN to connect to most of my clients before I RDP to server etc. I cannot seen to get the config to work though I keep getting the following error trace

ArgumentNullException - Value cannot be null.
Parameter name: fileName

at System.IO.FileInfo..ctor(String fileName)
at RemoteDesktopManager.AddOn.OpenVPNAddOn.OpenVPNAddOn.Open(String aParams)
at Devolutions.RemoteDesktopManager.Business.VPNOpeners.VPNAddOnOpener.Open(VPNConnection aVPN)
at Devolutions.RemoteDesktopManager.Managers.VPNManager.OpenVPN(Connection aConnection)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.OpenConnection(Connection aConnection, OpenConnectionMode aOpenConnectionMode)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.OpenConnections(Connection[] aConnections, OpenConnectionMode aOpenConnectionMode)
at Devolutions.RemoteDesktopManager.Forms.FrmMain.OpenConnection(Connection[] aCurrentConnections, OpenConnectionMode aOpenConnectionMode)
at Devolutions.RemoteDesktopManager.Frames.ConnectionViews.FreBaseConnectionView.OpenConnection(Connection[] aCurrentConnections, OpenConnectionMode aOpenConnectionMode)
at Devolutions.RemoteDesktopManager.Frames.ConnectionViews.FreConnectionTreeView.tvList_NodeMouseDoubleClick(Object sender, TreeNodeMouseClickEventArgs e)
at System.Windows.Forms.TreeView.OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs e)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at Devolutions.Private.Controls.TreeViewXP.WndProc(Message& message)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I'm using RDM 5.7.1.0 Enterprise with the OpenVPN AddOn 1.1.02

avatar

Hello rkentish,

I'm sorry to hear you're having issues. At what point are you getting the error? Are you manually entering a connection or using the import option? Could you try the latest version, which is 1.1.0.4, and let me know if you still have the issue?

You can get the latest version at my site:
http://www.pocketemu.com/rdmaddons/openvpn-for-rdm/

avatar

Have just updated to 1.1.0.4 and I'm still having the same problem.

The error occurs when I actually try and to connect the session. I have been creating the OpenVPN config manually. Does the addon create the config and cert files on the fly (from the database options) and if so is there somewhere I can check to see if they are being created properly?

BTW Thanks for the quick reply
edited by rkentish on 3/16/2010

avatar

Yes the connection is created in the RDM user data folder, which should be:
Vista/Win7 - C:\Users\<username>\AppData\Local\Devolutions\RemoteDesktopManager\OpenVPN
XP - C:\Documents and Settings\<username>\Local Settings\Application Data\Devolutions\RemoteDesktopManager\OpenVPN

There should be a folder in there with the config files that are generated when launching the connection. There are only a few spots in the addon where I use FileInfo, so this shouldn't be too difficult to track down.

avatar

I may have tracked the issue down. Can you please try this build and let me know your results?

http://www.pocketemu.com/downloads/OpenVPNAddOn_1.1.0.5.zip

avatar

That build worked great!! Thanks for you're help and excellent response times.

I just have one last question, is there any way to specify a delay before trying to connect the session (or can it wait for a success response from OpenVPN). The RDP session that runs over the VPN is attempting to connect before the VPN is established and then timing out as the VPN takes a couple of seconds to establish.

avatar

Glad to hear that worked for you. I'll release that version tonight because that's a pretty major issue you found. Thanks for reporting it.

I will be implementing a wait time soon, but in the meantime there is a way to have it work. Set up the OpenVPN connection as it's own session in RDM, then in your RDP session's VPN tab select "Existing Session" and point it at the OpenVPN session. The "Existing Session" option has a wait time implemented and it works well with the OpenVPN AddOn.

avatar

Sweet, that will actually work better for me as I have 3 - 4 different internal machines that I need to get through via the same VPN connection.

Do you know if the VPN session will be held open as long as one of the sessions is using it (if I set the auto disconnect option)?

avatar

If you use the the "connect if unable to ping" option, and the machine you're trying to hit (or just testing for ping) is pingable via the OpenVPN connection, things should work just fine because in order to ping the machine the tunnel has to be up and running.
edited by jskuby on 3/17/2010

avatar

Hi,

I think rkentish wants to know if the OpenVPn-Connection is left open if mote than one Remotesessions are using it.

As far as I know this is not possible, but in planning.

Hoevermann IT-Gruppe
www.hoevermann-gruppe.de

avatar

Exactly, this is something I want to add in the next major update and maybe before. I really think that it's an important feature but it's not simple (not too complex too) to implements. For the next minor update, I could add an option to "ask confirmation before closing VPN". At least you will be able cancel the close.



What do you think ?
edited by dhervieux on 3/18/2010

David Hervieux

avatar

I think that will be enough.

Hoevermann IT-Gruppe
www.hoevermann-gruppe.de

avatar

In the interim I think that would be great as during testing/playing yesterday and last night I was having problems with the connection closing on me after one of the sessions ended.

Another problem that I was having was that my OpenVPN connections were taking a long time to come up and it meant that I was continually increasing the wait time.

Is it possible (this may be something that has to be implemented in RDM) to not report the connection fully up until the server at the other end can be pinged and to implement a dynamic wait for the depending session. Eg. The RDP session will not attempt to connect until it either gets a "successful" from the VPN connection or it can actually ping the host it is trying to connect to?

avatar

Good idea, I added a feature request for that

David Hervieux

avatar

Is there any progress on the "proxy problem" like discribed below?

There seems to be a problem when using the http proxy. When connecting the proxy uses the remote server port instead of the http proxy port.

avatar

Hi,
I'm not sure, I understand what is the proxy problem port, can you reexplain the problem

David Hervieux

avatar

I enter a proxy configuration (http adres and port)

When I try to connect it uses the proxy http adres, but not the proxy http port of the proxy server, but it uses the server port (default 1194) instead

avatar









Hello BART_666,




I had taken a break from working on the addons for a while (real life got in the way), but I'm back to a point where I can resume work again. I'll get this on my TODO list.

avatar

I have a new version to test out before I take it live. This should fix the http proxy problem, and I've also added support for the PKCS12 certificate store, in addition to the default individual cert and key files. I'm also in the process of reworking the GUI a bit. Let me know what you all think and how it's working for you:

http://www.pocketemu.com/downloads/OpenVPNAddOn_1.1.0.6.zip
edited by jskuby on 8/17/2010

avatar

Hi,

It seems to work fine! Thx
Only the automatic entering of the username and password is not always entered. (i do not press any key)
Is there may be a workaround?

avatar

This addOn no longer works with the latest version of RDM 5.8.3.0

avatar

Hi,
What error do you get ?

David Hervieux

avatar

I don't get an error, It just doesn't appear.
I had it working with the previous version, after the upgrade the openvpn option is no longer available under VPN.

I have reinstalled on a new machine, unzipped the latest OpenVPNAddOn.dll v 1.1.0.6 into the program folder and still it doesn't appear under Vpn..

avatar

I suspect that there is a problem with the Program files virtualization. Can you try to move your installation in another folder, for example c:\RDM ?

David Hervieux

avatar

Also,
if you try this beta version,

http://remotedesktopmanager.com/download/Setup.RemoteDesktopManager.5.8.3.5.exe

You can install the dll at the same place than the application. You can find the path by using the menu Help->View Applications Log
edited by dhervieux on 10/8/2010

David Hervieux

avatar

yep, your right.
Moved it to c:\RDM as you suggested and now it works.

avatar

Beta version in your link also works in C:\program files\....
Thanks

avatar

The problem with the beta version now though is I can't change the location of the data source.
No Popup appears.

avatar

David Hervieux

avatar

When I connect with the latest release of OpenVPN and RDM to an OpenVPN connection that requires the OpenVPN GUI to be run with Administrative rights (Windows 7 64-bit with UAC enabled), it only connects when RDM is started with Admin rights as well. Any way to have RDM request that OpenVPN be started with admin rights without starting RDM with admin rights? I haven't used OpenVPN with RDM before now; I assume this isn't a new issue though. No elevation required with Shrew and IPsec, but I assume that's because IPsec requires a kernel driver to already be installed and OpenVPN runs in userspace but needs privileges to be able to flush the arp table and update routes.

avatar

Hi,

OpenVPN 1.1.0.6 and latest RDM 5.9.0.0a (but saw this also in previsus versions of RDM) does not fill key password even this is set in option page of vpn connection.
seems the same as BART_666 reported 9/7/2010.
is anybody facing same problem or is teher any solution for this problem?

Petr Valouch

Help wanted: Telepath.
You know where to apply.

avatar









Hi

i cant download that file the site is not reachable.

Can u post it here or post a new link please

Thanks

Henning

avatar

Hi,
It's available now directly from our web site:

http://remotedesktopmanager.com/remotedesktopmanager/Home.aspx/AddOn

David Hervieux

avatar

OpenVPN 1.1.0.6 and latest RDM 6.0.0.0 does not fill key password even this is set in option page of vpn connection.
is anybody facing same problem or is teher any solution for this problem?

Thanks

avatar

Hi,
I'm not the one that did this add-on but I took a look. I simulate the SendKey for the authentication. I suppose that you are prompted but it's not filled? Can you try to run the application in Administrator mode?

David Hervieux

avatar

In the new versions the "Set Authentication" is not working. It is possible to change the username, but after changing the password and saving, the new password is lost.
Also the checkbox "show password" does not work.

Is it possible to fix this?

avatar

Hi,
I will take a look at this. Thank you

David Hervieux

avatar

Hi there. Were this problem been fixed already?

avatar

No, this is not fixed yet. dhervieux?

avatar

I have assigned this to Andre

David Hervieux

avatar

Hi,
Could you try this new version please?
I added the "Credential repository" support and fixed the "Show password" in 2 forms.

Regards

André Sanscartier

OpenVPNAddOn.zip

avatar

It works super! Thanks!!!

avatar

hello

if i try to import .opvn file whitch contains .crt or .key file with space in name this configuration is not possible to import ...
in .opvn configuration file this is enclosed in quotes but it seems the whole path is also enlosed in quotes, so it try to read something like this:
"C:\Program Files (x86)\OpenVPN\config\"file with space.crt""

Petr Valouch

Help wanted: Telepath.
You know where to apply.

avatar

Hi,
Could you try this new version please ?
I think that the filename issue is fixed.
Regards

André Sanscartier

OpenVPNAddOn[1].zip

avatar

nope :(
openvpn addon reported as 1.3.1.0

System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.Combine(String path1, String path2)
at RemoteDesktopManager.AddOn.OpenVPNAddOn.OpenVPNHelper.Import(String readFile)

Petr Valouch

Help wanted: Telepath.
You know where to apply.

avatar

Hi,
Is it possible to send us a file with this issue ?
You may send the file to infos@devolutions.net
Regards
edited by asanscartier on 10/24/2012

André Sanscartier

avatar

Hi,
Just in case you missed the update of my last message.
You may send the file to infos@devolutions.net
Regards

André Sanscartier

avatar

hello andree

sent to infos@devolutions.net ...

Petr Valouch

Help wanted: Telepath.
You know where to apply.

avatar

Hi,
This one should be better :)
Regards

André Sanscartier

OpenVPNAddOn[1][2].zip

avatar

hello andre

confirmen that import works, but if i try to use it it fails, because when you generate own .opvn file, ca, cert and key parameters is NOT enclosed in quotes, so openvpn did not find them

Petr Valouch

Help wanted: Telepath.
You know where to apply.

avatar

Hi,
I added quotes to filenames in generated ovpn file.
I hope that will solve your issue. I don't have the appropriate setting here to test it.
Regards
edited by asanscartier on 10/29/2012

André Sanscartier

OpenVPNAddOn[1][2][3].zip

avatar

hello andre

confirmed all is working now

Petr Valouch

Help wanted: Telepath.
You know where to apply.

avatar

Hi guys,

Not sure if this is a bug or I'm improperly configuring OpenVPN. I've setup a new VPN and configured the option "Enable automatic key password entry" and specified my password.

If I run OpenVPN it says it connects OK but it does not actually add the routes (error: the requested operation requires elevation).

The workaround I have previously used when seeing this is to configure the openvpn-gui executable to run as administrator (2.jpg), however if I do this I am prompted for the password again (if I correctly type it the VPN works).

I'm using Windows 8 x64, can someone replicate this issue?

Thanks,
Dragos
edited by Dragos Madarasan on 3/9/2013

avatar

Hi, just wanted to let you know I solved this issue by having RemoteDesktopManager.exe run with Administrative privilege level.