Tuesday, 28 June 2011

Astaro Open VPN failed startup on workstation unlock and allowing OpenVpn Without UAC


Description: When open vpn client is installed on a workstation, it adds itself to the start-up menu automatically. This results in a UAC popup on Windows start-up. Also, the vpn client disappears when a workstation gets locked or when a workstation goes into idle mode.
Solution:

1.       Disable the existing start-up item. This can be done from the registry.

2.       Open regedit.exe

3.       HKEY_LOCAL_MACHINE -> SOFTWARE -> Wow6432Node -> Microsoft -> Windows -> CurrentVersion -> Run

4.       On the right hand side, you can find the entry for openvpn-gui. Modify the value of the same or delete it.




5.       Now, start the task scheduler -> Task Scheduler Library -> Create a new task.

Step 1: Create the a new task.


Step 2: Create the two triggers for two main events - User Logon and Workstation Unlock


 Step 3: Define an action. To fire the openvpn-gui.exe
 Computer -> Program Files (X86) -> Astaro -> Astaro SSL VPN Client -> bin -> openvpn-gui.exe




 Step 4: Define the special conditions.


Step 5: Modify the settings to ensure that there is only one instace of openvpn-gui running at a time.