The original gui doesn't seem to be maintained anymore but I believe that that modified version will be the standard in a forthcoming release.
The one mentioned on the wiki
http://sourceforge.net/projects/openvpn-gui/ doesn't work with service started management interfaces so is completely pointless at the moment (imho).
The modified one I pointed you to seem to work flawlessly though and with some registry changes to limit user options is great for end users.
I've recently setup a 4 instance openvpn server for load distribution across 4 CPUs with a view to rolling out 400 clients. As part of this I have scripted client addition, password setting and installation zip file building so the install is easy.
Below is my installation batch file template - this is used to create a per-client installation with %%CLIENT%% being replaced with the client name when the zip file is built. It might prove useful.
INSTALL.BAT
Code: Select all
@ECHO OFF
REM OPENVPN INSTALLATION HELPER BATCH FILE
REM
REM IN CURRENT DIR SHOULD BE ALL THE INSTALLATION FILES EXTRACTED FROM
REM ZIP FILE
REM
IF EXIST "C:\Program Files (x86)" GOTO BIT64
SET PROGDIR=C:\Program Files
SET OS=32
GOTO DONE
:BIT64
SET PROGDIR=C:\Program Files (x86)
SET OS=64
:DONE
FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
ECHO The batch file is located in directory %BATDIR%
ECHO.
CD /D %BATDIR%
SET BATDIR=
REM FIRST INSTALL OPENVPN GUI
.\openvpn-2.2.0-install.exe
REM ECHO INSTALLING AUTH OPENVPN EXE
MOVE "%PROGDIR%\OpenVPN\bin\openvpn-gui-1.0.3.exe" "%PROGDIR%\OpenVPN\bin\openvpn-gui-1.0.3.exe.org"
COPY openvpn-mi.exe "%PROGDIR%\OpenVPN\bin\openvpn-gui-1.0.3.exe"
ECHO INSTALLING CONFIG FILE
COPY office.ovpn "%PROGDIR%\OpenVPN\config\"
ECHO INSTALLING CERTIFICATES
COPY ca.crt "%PROGDIR%\OpenVPN\config\"
COPY %%CLIENT%%.crt "%PROGDIR%\OpenVPN\config\"
COPY %%CLIENT%%.key "%PROGDIR%\OpenVPN\config\"
COPY ta.key "%PROGDIR%\OpenVPN\config\"
ECHO UPDATING REGISTRY
regedit /S openvpn%OS%.reg
regedit /S vnc%OS%.reg
ECHO INSTALLING VNC SERVER
tightvnc-2.0.2-setup.exe
ECHO STARTING OPENVPN SERVICE
sc config openvpnservice start= auto
sc start openvpnservice
ECHO STARTING VNC SERVER
sc config tvnserver start= auto
sc start tvnserver
ECHO INSTALLING STARTUP LINKS
xxmklink "%ALLUSERSPROFILE%\Start Menu\Programs\Startup\openvpngui.lnk" "%PROGDIR%\OpenVPN\bin\openvpn-gui-1.0.3.exe" "" "%PROGDIR%"
ECHO INSTALLATION COMPLETE
CALL PERMS.BAT
PAUSE
"%ALLUSERSPROFILE%\Start Menu\Programs\Startup\openvpngui.lnk"
PERMS.BAT
Code: Select all
FOR /F %%I IN ("%0") DO SET BATDIR=%%~dpI
ECHO The batch file is located in directory %BATDIR%
ECHO.
CD /D %BATDIR%
SET BATDIR=
ECHO Enter user names to grant service stop/start to.
:nameloop
SET NAME=
SET /P NAME=Username:
IF "%NAME%" == "" GOTO done
ECHO %NAME%
SUBINACL /SERVICE "OpenVPNService" /GRANT=%NAME%=TO
GOTO nameloop
:done
The Zip file contents look like this -
Code: Select all
-rw-r--r-- 1 root root 1432 May 12 18:36 ca.crt
-rw------- 1 root root 636 May 12 18:42 ta.key
-rw-r--r-- 1 root root 290304 May 19 16:43 subinacl.exe
-rw-r--r-- 1 root root 85504 May 19 16:43 openvpn-mi.exe
-rwxr--r-- 1 root root 1098 May 19 16:43 openvpn32.reg
-rw-r--r-- 1 root root 1405368 May 19 16:43 openvpn-2.2.0-install.exe
-rw-r--r-- 1 root root 49152 May 20 21:34 xxmklink.exe
-rw-r--r-- 1 root root 657656 May 20 21:49 tightvnc-2.0.2-setup.exe
-rwxr--r-- 1 root root 2572 May 20 21:56 vnc32.reg
-rw-r--r-- 1 root root 340 May 25 15:56 perms.bat
-rwxr--r-- 1 root root 1158 May 26 14:48 openvpn64.reg
-rwxr--r-- 1 root root 2616 May 26 14:49 vnc64.reg
-rw-r--r-- 1 root root 1084 Jun 1 14:50 office.ovpn
-rw-r--r-- 1 root root 1608 Jun 1 14:50 install.bat
-rw------- 1 root root 887 Jun 1 14:50 fredbloggs.key
-rw-r--r-- 1 root root 4040 Jun 1 14:50 fredbloggs.crt
You might notice it also installs tightvnc. The registry files setup the openvpn gui and tightvnc settings.
I include subinacl and xxmklink to allow the service rights to be grants and create shortcuts to startup.
It also uses sc to set the services to auto start and to start them.
It's a bit heath robinson in some respects - but it seems to work.