jochenwierum / openvpn-manager Goto Github PK
View Code? Open in Web Editor NEWAn OpenVPN Frontend
Home Page: https://github.com/jochenwierum/openvpn-manager/wiki
License: GNU General Public License v2.0
An OpenVPN Frontend
Home Page: https://github.com/jochenwierum/openvpn-manager/wiki
License: GNU General Public License v2.0
Hi!
When using a (PIN protected) smart card and enabling smart card support in OpenVPN Manager 0.0.3.8, I retrieve the following error.
Mon Oct 07 21:00:38 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Mon Oct 07 21:00:38 2013 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:11197
Mon Oct 07 21:00:38 2013 Need hold release from management interface, waiting...
Mon Oct 07 21:00:38 2013 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:11197
Mon Oct 07 21:00:38 2013 MANAGEMENT: CMD 'log on all'
Mon Oct 07 21:00:38 2013 MANAGEMENT: CMD 'state on'
Mon Oct 07 21:00:38 2013 MANAGEMENT: CMD 'hold release'
Mon Oct 07 21:00:38 2013 PKCS#11: Adding PKCS#11 provider 'c:\Windows\System32\opensc-pkcs11.dll'
Mon Oct 07 21:00:38 2013 MANAGEMENT: CMD 'pkcs11-id-count'
Mon Oct 07 21:01:27 2013 MANAGEMENT: CMD 'pkcs11-id-count'
Mon Oct 07 21:01:28 2013 MANAGEMENT: CMD 'pkcs11-id-count'
Mon Oct 07 21:01:31 2013 MANAGEMENT: CMD 'signal SIGTERM'
Mon Oct 07 21:01:31 2013 Cannot load certificate "(null)" using PKCS#11 interface
Mon Oct 07 21:01:31 2013 SIGHUP[hard,private-key-password-failure] received, process restarting
Mon Oct 07 21:01:31 2013 MANAGEMENT: >STATE:1381172491,RECONNECTING,private-key-password-failure,,
Mon Oct 07 21:01:31 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Mon Oct 07 21:01:31 2013 MANAGEMENT: CMD 'signal SIGTERM'
Mon Oct 07 21:01:31 2013 Signal received from management interface, exiting
The following verifies, that my smart card is connected as required:
C:\Program Files\OpenVPN\bin> openvpn.exe --show-pkcs11-ids c:\Windows\System32\opensc-pkcs11.dll
The following objects are available for use.
Each object shown below may be used as parameter to
--pkcs11-id option please remember to use single quote mark.
Certificate
DN: CN=mydomain.example.com
Serial: 020EFB
Serialized id: ZeitControl/PKCS\x2325\x20emulated/000500000c81/OpenPGP\x20card\x20\x28User\x20PIN\x29/03
Hi, first let me thank you for your work on this great utility.
I'm wondering whether is there a possibility to allow log to a file when there is log file set in ovpn config file? Log .... and Log-Append .... options doesn't seem to be working when I connect through openvpnmanager (There's even no default log file even when log is not specified compared to openvpn-gui - only log available is in openvpnmanger's gui, but I'd definitely prefer to have external one)
Can you please implement this feature or is it some kind of limitation when connecting through management interface?
Regards,
Ez.
Hi,
I wish I could copy one or more lines from the openvpn manager status window to my clipboard to paste them somewhere else.
This could be done by selecting a single line or muliple lines by pressing ctrl and/or shift.
At the moment I can doubleclick on one line to get a popup window with the content of the line but I can't mark or copy it.
Best regards
Olaf
Dear Sir,
can i start a script automaticly after connection and before disconnection?
What should i do?
Thanks!
The download link for the exe is broken.. please fix.
http://openvpn.jowisoftware.de/downloads/openvpnmanager_0.0.3.8_setup.exe
In version 0.0.3.6, if I connect to one connection successfully, then click connect on a second, the following exception occurs:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Text length must be less than 64 characters long.
Parameter name: Text
Actual value was fw-udp-1193-xxxxx (service): Connecting
xxxx-pfsense-udp-1194-Xxxxx.Xxxxxxxx (service): Connecting
.
at System.Windows.Forms.NotifyIcon.set_Text(String value)
at OpenVPNManager.FrmGlobalStatus.SetTrayIconAndPopupText()
at OpenVPNManager.VPNConfig.State_StateChanged(Object sender, StateChangedEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenVPNUtils.States.State.raiseEvents(StateSnapshot ea)
at OpenVPNUtils.States.State.ChangeState(VPNConnectionState newstate)
at OpenVPNUtils.ServiceConnection.Connect()
at OpenVPNManager.VPNConfig.Connect()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
OpenVPNManager
Assembly Version: 0.0.3.7
Win32 Version: 0.0.3.7
CodeBase: file:///C:/Program%20Files%20(x86)/OpenVPN%20Manager/OpenVPNManager.exe
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
OpenVPNUtils
Assembly Version: 0.0.3.7
Win32 Version: 0.0.3.7
CodeBase: file:///C:/Program%20Files%20(x86)/OpenVPN%20Manager/OpenVPNUtils.DLL
----------------------------------------
OpenVPN
Assembly Version: 0.0.3.7
Win32 Version: 0.0.3.7
CodeBase: file:///C:/Program%20Files%20(x86)/OpenVPN%20Manager/OpenVPN.DLL
----------------------------------------
men3ho__
Assembly Version: 0.0.3.7
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
The idea is to add a checkbox in the options which lets the app save a list of open connections when it gets closed. When restarting (and the flag is present in the config) the list could be read and the connections will be opened again.
I've added 'auth-retry interact' to the both of config file (openvpn and openvpn manager) but when I run the application it raises a message like this:
the application setting is like:
the config has these lines:
management 127.0.0.1 1194
management-query-passwords
management-hold
management-signal
management-forget-disconnect
auth-retry interact
After all the application work and I can connect to a tunnel but I don't know the effect of this error message on openvpn manager manner!
Hi Jochen,
It would be awesome if OpenVPN Manager could remember it's main window position. I place it to the bottom right, but after every (application) restart, the window is back at the left top position.
So I would like to request the feature to save window positions.
Thanks :-)
It looks like the newest installer of openvpn doesn't create the registry key exe_path used to resolve the openvpn.exe location anymore, but still creates the OpenVPN key. UtilsHelper.LocateOpenVPN on the other hand only checks for the existence of the OpenVPN key and assumes that there must be an exe_path underneath. Instead it should check for the key to exist before it tries to read the value, to avoid an ugly IOException.
This only happes if you don't add openvpn.exe to the PATH variable, as LocateOpenVPN checks the PATH and retuns on success, before it tries the registry lookup method.
The actual Setup Files containes the .net and the openvpn installer
this is a request to get an installer that only installs the manger and no deeps.
or is there a way to specify on the commandline in silent install to not install the other parts.
thx
Mario
With the official openvpn-gui.exe there is a command line parameter of '--silent_connection 1' which hides the status popup when connecting.
I was wondering if it would be possible to get a similar option (either as an option or command line parameter) for openvpn-manager?
Cheers
Hello,
I want to use OpenVPNManager to connect to two OpenVPNs at once. The OpenVPNs I want to connec to are running on pfSense firewalls.
I added a second TAP adapter, but when I try to connect to the second VPN I'm getting 'Could not establish connection to management interface'.
Before I switched to using OpenVPNManager I didn't have to make any other changes, does anyone know how to connect multiple VPNs at once with OpenVPNManager?
Hello I think a fantastic feature would be if the connection status window came up when attempting to connect that way you would be able to see if and why a VPN isn't connecting, instead of waiting or manually clicking on the icon. This window should minimize on a successful connection.
It would also be very nice to see the connection IP in a tooltip once the connection has be established.
Thanks
The subj.
Hello,
I tried version 0.0.3.8 from http://openvpn.jowisoftware.de/downloads/, and the management interfaces do not seem to come up - so I cannot connect to anything. Version 0.0.3.7 seems fine.
Installer 'requires'/checks for DotNet4, please change to DotNet2.
However OpenVPNManager runs fine with only DotNet2. Only DotNet4 however does not work for OpenVPNManager, so the installer should be changed to match/require DotNet2.
When I run this project in Visual studio , and true to connect one of VPNs , it's shown UAC prompt ask for administrator password. Does anyone know how to remove this UAC promot? I think it was trying to trigger OpenVPN.
thanks
Hi Jochen,
I use Notepad++ as my default editor. And as Notepad doesn't support the Unix line ending, it would be awesome to set the editor for OpenVPN Manager to Notepad++.
So my request would be an option in the settings to change the path to the default editor.
Thanks! :-)
Hi Jochen,
I would like a button to open the configuration directory, or, even better, be able to delete configurations from the Manager.
Thanks!
This is a feature request: A way to set a default password for many or all configurations at once. (I have hundreds of servers through which I can use NordVPN, but every time I use a server for the first time, I must enter the long username and password I was given by them.)
Thank you.
Is there any reason why some of the assemblies target x86 only? As we don't reference any unmanaged x86 libraries, we should change this to AnyCPU to give the .net runtime the choice.
Or do we want to save memory, by forcing the runtime into 32bit? If so, I suggest to only compile the executables as x86 and let the dlls target AnyCPU anyway.
I'm using OpenVpnManager version 0.0.3.8 (but with version 0.0.3.6 it was the same) with Windows 7 x64, I have more than one config file in the config directory, together with the .p12 and .key files linked in the configuration.
If I start the service and the application with these files in place, I'm able to see in the tray menu all the profiles, but if start the connection to one of them the connection fails because the software is using the wrong .p12 file. If I move out of the config folder all the files, and I copy manually only the ovpn, p12 and key files of one profile, then the connection works flawlessly.
Example
config folder content:
profileA.ovpn, profileA.p12, profileA.key
profileB.ovpn, profileB.p12, profileB.key
profileC.ovpn, profileC.p12, profileC.key
Starting the connection with profileA, the log says that the software is using profileB.p12, and starting profileB the software uses profileC.p12, and so on
Sometimes stopping and restarting the service will change the p12 files picked up by the software, so sometimes after a restart of the service the software tries to use profileC.p12 for the connection to profileA.
If I have only the files of one profile in the folder then everything works.
Thanks
Luca
As the title say, if the configuration contains the line with:
verify-x509-name "host.domain.tld" name
the configuration will be ignored.
Please update it for the new openvpn clients.
thanks.
Dear all,
I had Windows 8, and I upgraded to Windows 8.1, after the upgrade everything worked fine but your OpenVPN Manager application. I am not able to use it any more. Would it be possible to provideme with some instructions on what to do , so I can continue to use it. The message I get is: "error while starting OpenVPN" . Thanks in advance for your help.
This might be more of a feature request than issue:
Is there a way to bring up the status GUI when the desktop icon is double-clicked after the program has already started?
Apparently my users don't understand anything unless it's in the start menu or desktop icon 😄
I really like using OpenVPN Manager,
but I've a lot of openvpn configs, and after I changed the path to the configs, the Manager stops working and cpu and mem usage is really high. If I use another folder with just 3 configs everything works fine.
But I think if it's a manager it should work with a lot of configs.
Maybe you could add subfolders to the manager or something.
take care
-Chris
Hello a feature that I would like to see is the ability to scroll through your list of config files when you right click with the mouse wheel that would be really cool and much faster than clicking on the arrow at the bottom.
Thanks
To keep the Software clear it would make sense to push the Windows Service Part into an own small executable.
I use Hibernate allot !! If I connect to my home openvpn server and connect with OpenVPN Manager it works just fine - and shows green in icon bar. If I then hibernate my tablet then un-hibernate it - status is still green. Cannot disconnect or do anything with icon. OpenVPN connection is NOT up. Either have to restart Tablet OR Kill OpenVPN Manager program - stop and start the OpenVPN manager service and restart the OpenVPN Manager program.
Is this a known issue ??
Hello
I'm using version 3.6, and only one certificate.
I would like to connect to vpn to start windows.
The openvpnmanager service is active.
Currently the process is done manual -> right and connect button.
I appreciate all help.
Follow the .ovpn file:
dev tun
persist-tun
persist-key
cipher BF-CBC
auth SHA1
tls-client
client
resolv-retry infinite
remote ip 1194 udp
lport 0
verify-x509-name "server" name
pkcs12 srvlmssafw01-udp-1194-XXX.p12
comp-lzo
auth-retry interact
management 127.0.0.1 166
management-hold
management-query-passwords
management-signal
management-forget-disconnect
No issue with 0.0.3.6 but issue running same ovpn file with 0.0.3.7
Unhandled exception has occured in your application.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Text length must be less than 64 characters long.
Parameter name: Text
Actual value was AirVPN United States - Fremont, California (Persei)(UDP) (AirVPN): Connecting
.
at System.Windows.Forms.NotifyIcon.set_Text(String value)
at OpenVPNManager.FrmGlobalStatus.SetTrayIconAndPopupText() in C:\Users\Jochen Wierum\Documents\Visual Studio 2008\Projects\OpenVPN Manager\OpenVPNManager\FrmGlobalStatus.cs:line 663
at OpenVPNManager.VPNConfig.State_StateChanged(Object sender, StateChangedEventArgs e) in C:\Users\Jochen Wierum\Documents\Visual Studio 2008\Projects\OpenVPN Manager\OpenVPNManager\VPNConfig.cs:line 424
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenVPNUtils.States.State.raiseEvents(StateSnapshot ea) in C:\Users\Jochen Wierum\Documents\Visual Studio 2008\Projects\OpenVPN Manager\OpenVPN\States\State.cs:line 143
at OpenVPNUtils.States.State.ChangeState(VPNConnectionState newstate) in C:\Users\Jochen Wierum\Documents\Visual Studio 2008\Projects\OpenVPN Manager\OpenVPN\States\State.cs:line 78
at OpenVPNUtils.UserSpaceConnection.Connect() in C:\Users\Jochen Wierum\Documents\Visual Studio 2008\Projects\OpenVPN Manager\OpenVPN\UserSpaceConnection.cs:line 126
at OpenVPNManager.VPNConfig.Connect() in C:\Users\Jochen Wierum\Documents\Visual Studio 2008\Projects\OpenVPN Manager\OpenVPNManager\VPNConfig.cs:line 466
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6400 (Win8RTMGDR.050727-6400)
OpenVPNManager
Assembly Version: 0.0.3.7
Win32 Version: 0.0.3.7
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6402 (Win8RTMGDR.050727-6400)
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
OpenVPNUtils
Assembly Version: 0.0.3.7
Win32 Version: 0.0.3.7
OpenVPN
Assembly Version: 0.0.3.7
Win32 Version: 0.0.3.7
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
To make it easier for others to compile the code and provide pull requests, the AssemblyOriginatorKeyFile should be moved to corresponding .user files. As an example for the OpenVPN.csproj the OpenVPN.csproj.user file would look like this:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyOriginatorKeyFile>jochenwierum.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<None Include="jochenwierum.pfx" />
</ItemGroup>
</Project>
The .user files can then be ignored in the preferred way.
Having multible configs with the same management address amd port running at the same time doesn't work, because the first corresponding openvpn instance will bind to the port and other instances will not be able to bind to the port until the first instance is gone. The user should be warned if there is already an instance with the given management port running.
Hello,
I have several Win10 machines where the machine boots up but the 'OpenVPN Manager' never starts. I'm not able to connect to any VPNs with Openvpn-Manager until I manually start the 'OpenVPN Manager' service. So far I can't find any errors or other clues as to why this isn't starting.
Has anyone else had this issue?
Hi,
it would be nice if I could select one of multiple VPNs for autoconnect on startup.
Best regards
Olaf
Hi there,
I wish as new feature that the current connected IP-Adress(es) is/are shown in the tooltip of the openvpn-manager icon.
Actually I have to rightclick on the icon, choose the connected VPN and click "show" to see the current connected IP-Adress in the new window in the upper right corner.
Thanks for reading.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.