OpenVPN Windows Client Code
Status: Beta
Brought to you by:
valvachaev
OpenVPN Windows Control is a software tool for controlling secure IP tunnels that can be created by OpenVPN daemon. It consists of two programs, one of them (VpnControl)is implemented as Windows service and the second one (VpnGui) as a GUI application (reason why I use GUI stub is here http://msdn.microsoft.com/en-us/library/ms683502%28VS.85%29.aspx). The service-based program uses OpenVPN Management interface which allows OpenVPN to be controlled via TCP socket. Notice that now you don't have to be administrator any longer. Limitations: ------------------------------------------------------------------------ * It supports a single connection. * It does not support proxy configuration * It does not support "static key" authentication mode. Building OpenVPN Windows Control source ------------------------------------------------------------------------ * Download and install NSIS scriptable installer from http://nsis.sourceforge.net/Download * Download and install MinGW and MSYS from http://www.mingw.org/ It can be downloaded and installed easily by using GUI installer (mingw-get-inst), see http://www.mingw.org/wiki/Getting_Started * Download and extract the OpenVPN Control source archive. * Start a bash shell by running msys.bat. * Run "make" from the OpenVPN Control source directory. * Compile ovpnctrl.nsi NSIS script to get VPN Control installer. Installation ------------------------------------------------------------------------ * Before installation make sure you have installed OpenVPN software package. I use OpenVPN 2.1.3 * Run the installer and choose location for the controlling tool; by default it is "C:\Program Files (x86)\OVPN-CTRL". * When the installation completed successfully, an icon "monitor" should appear in the system tray in approximately 1 minute. Using ------------------------------------------------------------------------ * Create a config-file with your favorite text editor and save it in any directory. There are two config files in the "config" folder that I have used during programs testing. Because the tool uses management protocol, do not forget to add the management directives to the config file. * To connect/disconnect or set up some connection parameters launch Vpn Control by clicking "monitor" icon in the system tray. Once parameters are entered the VPN Control will keep it in the system registry. * If you need to establish VPN connection after booting the system, checkmark the “Connection Mode" box in “Connection Settings” dialog.