Pages

Friday, March 30, 2007

Open-VPN on Windows Vista

Because I got a new laptop (Notebook Toshiba Satellite A100-599 Centrino Duo T7200, 2.0GHz, 1GB, 160GB, VISTA) with Windows Vista preinstalled, and I needed to use Open-VPN, I started searching for some info about how to use it. Download and install: Open-VPN GUI. Put your configs to C:\Program Files\OpenVPN\config. Add:
route-method exe
route-delay 2
to your *.ovpn file (client.ovpn) Run as Administrator (right click) C:\Program Files\OpenVPN\bin\openvpn-gui.exe. (If you don't run it with admin privileges, the TAP adapter won't work) And that's it..

40 comments:

Anonymous said...

don't work :(

Anonymous said...

Thank you so much. Works Great.

Anonymous said...

Thank you. OpenVPN on Vista on my machine did not work until I applied your additions to client.ovpn.

Excellent work on your part. Thanks.

Anonymous said...

My jaw is agape. IT said it wouldn't be easy. It worked on the first try.

IT had given me keys and a config file for my XP2 PC, so I copied those over, then modified the config file as you instructed.

I got a Toshiba Satellite, similar to yours. It's getting hard to find a notebook with XP, and in retail stores it's hard to find Vista Ultimate. This means I get to keep the cool new PC.

I have Vista Ultimate and used OpenVPN-GUI v.1.03 from the link you provided.

I don't know which version of OpenVPN is on our Linux server, sorry.

You're a god. Thanks.

Anonymous said...

Great, thanx!

Anonymous said...

Good stuff, it really works, on Vista it does not add the routes propperly and until I made those changes I was having to type the add routes command in the command line manually. Thank you man, works great!

Anonymous said...

doesn't work by me!

Anonymous said...

I also had this issue until I applied this fix, (Thank you for all of your hard work) and it worked for about 6 weeks. I would connect to my network from home; Remote desktop to my computer all is good! About 2 weeks ago my vista laptop started losing connection about 2 min into the session. There is a little popup window that says connection lost trying to reconnect 1 of 20 times. The connection is reestablished after the 5th or 6th attempt but keeps dropping out again in about 2 min. I've searched and searched and haven't been able to find any info on this issue. Any help would appreciated.

Rickyse1236

Anonymous said...

I also had this issue until I applied this fix, (Thank you for all of your hard work) and it worked for about 6 weeks. I would connect to my network from home; Remote desktop to my computer all is good! About 2 weeks ago my vista laptop started losing connection about 2 min into the session. There is a little popup window that says connection lost trying to reconnect 1 of 20 times. The connection is reestablished after the 5th or 6th attempt but keeps dropping out again in about 2 min. I've searched and searched and haven't been able to find any info on this issue. Any help would appreciated.

Rickyse1236

Anonymous said...

many thanks work perfect !!

Robert Brockway said...

Thanks for this. It worked perfectly for one of my users, who is using MS-Vista

Chis Florinel said...

@rickyse
Sorry for a late response...

I had some issues when there were 2 people using the same key...

Anonymous said...

Cool tip!!

Thanks.

Anonymous said...

Thanks worked perfectly !

Anonymous said...

I can confirm that this method works 100% on Win Vista Ultimate and OpenVPN 2.1 RC4, You have to remember to run the GUI as an Administrator, else it will connect but won't channel internet traffic.
....As for the owner first post of this thread...hey man! do you know how many people turned away from this excellent solution just because you posted a hasty comment. LIVE AND LET LIVE ....PLEASE

Anonymous said...

Fantastic!!!!

I scratched my brain for 1 full day and then found this post.I solved the Vista problem within minutes.


It worked in following 3 steps

1.Download and install the latest OpenVPN client that supports Vista

http://openvpn.net/index.php/downloads.html

OpenVPN 2.1_rc7 -- released on 2008.01.29



2.Add the two lines to config file *.ovpn in C:\Program Files\OpenVPN\config.

Add:

route-method exe

route-delay 2

to your *.ovpn file (client.ovpn)


3. Run as Administrator (right click) C:\Program Files\OpenVPN\bin\openvpn-gui.exe.
(If you don't run it with admin privileges, the TAP adapter won't work)

Kudos to all OpenVPN supporters
Thanks
Anil

Anonymous said...

Just great. Everyone should know it, thanks!

Anonymous said...

Hi there

The latest version works with Vista (even with your route commands :) yet I cannot remote desktip into the Vista OVPN Client or Vista OPVN Server either through OpenVPN tunnel or through the network (it seems that OVPN breaks the remote desktop agent in Vista).

VNC works great on both the client and server through OpenVPN.

Does anyone know how to Remote desktop Vista with OpenVPN?
Thanks

J

Steve Kamerman said...

Good work! I can confirm this works on Vista Ultimate x86 with UAC *enabled* using version 1.0.3 with OpenVPN 2.0.9. I simply added the two lines to the end of my config file and I'm off and running.

Anonymous said...

hi

thanks for this. it works in that i can now rdp over openvpn using vista.
however when i fire up the connection on the open vpn gui i lose my internet connectivity.

this never used to happen in xp

any ideas?

Anonymous said...

You're awesome! Thanks for that, I was looking everywhere for this fix.
Now works fine: OpenVPN on Vista Ultimate from home to work, routes added fine, and can Remote Desktop to work PC.

Anonymous said...

Thank you. It works for me after I edit my .ovpn file.

Sammy said...

hi

thanks for your help. I am using Windows Vista Premium version. I was able to establish VPN connection but lost Internet connection.
Do you know why the Internet connection loses when VPN connection is made. It did not happen in windows XP.
Thanks in advance for your help.

bhupinder said...

It worked for me without changing the config files. I just had to run the GUI (openvpn-gui-1.0.3) with admin privileges.

I guess the new version of openVPN (OpenVPN 2.1_rc11)takes care of the required configurations

Unknown said...

just make sure and run as admin..works

Joe said...

Just to note that this also makes the OpenVPN client work on Windows Server 2008 as well.
Cheers.

Anonymous said...

Thanks for the info! I had to bite the bullet for Windows at home due to our adoption of VMWare ESXi at the datacenter, so I got a Vista box to go the whole hog... this did the trick, and now I can run the VI client. Hope they patch the OpenVPN GUI installer to address this little issue.

Unosakura said...

Thank you, I apply the addition on vista client and it worked beautifully.

Ken

Anonymous said...

Excellent!!! Two days of errors, and here is the solution in two simple lines!!! THANK YOU SO MUCH!!!!!

Leonardo said...

Very good!!!!
Thank you!

speedbit@live.com.ar said...

I have a problem with OpenVPN runing on Windows 7 (the same was happening on Windows Vista, before): after a few minutes (may be a pair of hours), the connection sims to get hanged... and I must restart the service to get it working again! May be someone know the solution for this issue? Any idea?? I'll really appreciate any help! Thx.

speedbit@live.com.ar said...

I have a problem with OpenVPN runing on Windows 7 (the same was happening on Windows Vista, before): after a few minutes (may be a pair of hours), the connection sims to get hanged... and I must restart the service to get it working again! May be someone know the solution for this issue? Any idea?? I'll really appreciate any help! Thx.

Anonymous said...

I used these additions in my config file for Vista and Windows Server 2008 and run as administrator. Vista works fine. On server 2008, I must disable the Win Tap-32 device (control panel/device manager/network adapters) and then enable it again. Start openvpn-gui as adminstrator and connect. If I do not follow this ritual, I can connect (log file gives some errors for DHCP)but connot access resources on the remote network. It is almost as if Openvpn client does not clear everything. If I do not perform the disable/enable trick, my routing tables show some extra entries for the same ip("route print" on command line)

Unknown said...

Thanks, worked a treat!

Unknown said...

It worked nicely for me also. Thanks a lot. Regards

Jollo Toribio Semilla said...

It worked great! Thank you so much.

Brian said...

You saved me a headache. thank you!

sreeni said...

Thanks a lot, this article helped a lot. i was just about to migrate back to XP.

Unknown said...

add me to the list of people you made happy today:)

romania vpn said...

Thank you, I apply the addition on vista client and it worked beautifully.