VPN Auto-Connection using a standard user in Win7
Posted: Wed Mar 30, 2011 5:53 pm
Hey folks
I work for a hospital and we're currently planning to upgrade about 20 of our laptops used for EMR purposes to Windows 7 x64 Enterprise Edition from Windows XP Professional. I took one of the spare laptops aside to do some testing, making sure all the software would translate well to Windows 7 and ran into a snag with OpenVPN.
Everyone using these laptops has 'Standard' user accounts (no admin rights), so we can limit their access to everything but the essentials. We use OpenVPN as a secure method for our staff to access the medical (ePHI) network, and I'm having a considerable amount of trouble getting the VPN to auto-connect and be manageable via the user.
Preferably I'd like the Open VPN GUI to auto-start for the user at login and connect to the VPN seamlessly Having the GUI running is important because I prefer to give my users a visual representation showing their secure connection into the system is running.
The only viable option for having OpenVPN auto connect I've found is to set the OpenVPN service to automatic and have it run by default. Unfortunately that means if they lose connection, put the laptop to sleep or say go from work to their home with the device? A reboot is required by them to restart the VPN.
The other option I've been toying with is a login script using the runas command, but it fails to push the routes to the client side because they don't have rights to add routes.
The command I use is as follows:
c:\windows\system32\runas.exe /savecred /user:shop "c:\Program Files (x86)\OpenVPN\Bin\openvpn-gui-1.0.3.exe --connect client.ovpn --silent_connection 1 --show_balloon 0"
This does successfully start the OpenVPN GUI at login, however as I said, then it fails to push the routes.
I've also tried just using the --service_only switch and allowing them to just start and stop the service. But, again they don't have rights to start and stop the service.... so I appear to be stuck.
Does anyone have any advice / help to offer in getting this to auto-connect under a non-admin account in Windows 7 (And successfully push the routes)? Any assistance would be appreciated.
Cheers
-H.
I work for a hospital and we're currently planning to upgrade about 20 of our laptops used for EMR purposes to Windows 7 x64 Enterprise Edition from Windows XP Professional. I took one of the spare laptops aside to do some testing, making sure all the software would translate well to Windows 7 and ran into a snag with OpenVPN.
Everyone using these laptops has 'Standard' user accounts (no admin rights), so we can limit their access to everything but the essentials. We use OpenVPN as a secure method for our staff to access the medical (ePHI) network, and I'm having a considerable amount of trouble getting the VPN to auto-connect and be manageable via the user.
Preferably I'd like the Open VPN GUI to auto-start for the user at login and connect to the VPN seamlessly Having the GUI running is important because I prefer to give my users a visual representation showing their secure connection into the system is running.
The only viable option for having OpenVPN auto connect I've found is to set the OpenVPN service to automatic and have it run by default. Unfortunately that means if they lose connection, put the laptop to sleep or say go from work to their home with the device? A reboot is required by them to restart the VPN.
The other option I've been toying with is a login script using the runas command, but it fails to push the routes to the client side because they don't have rights to add routes.
The command I use is as follows:
c:\windows\system32\runas.exe /savecred /user:shop "c:\Program Files (x86)\OpenVPN\Bin\openvpn-gui-1.0.3.exe --connect client.ovpn --silent_connection 1 --show_balloon 0"
This does successfully start the OpenVPN GUI at login, however as I said, then it fails to push the routes.
I've also tried just using the --service_only switch and allowing them to just start and stop the service. But, again they don't have rights to start and stop the service.... so I appear to be stuck.
Does anyone have any advice / help to offer in getting this to auto-connect under a non-admin account in Windows 7 (And successfully push the routes)? Any assistance would be appreciated.
Cheers
-H.