OpenVPN is not working on Windows Vista/7

Recently i successfully setup OpenVPN server. It try to connect from my Windows XP pc, it work fine. But when i connect the OpenVPN via my Windows 7 and Windows Vista machine, it fail to connect.

The error they were getting was:

Thu Sep 16 13:30:09 2011 C:\WINDOWS\system32\route.exe ADD 172.16.0.0 MASK 255.255.0.0 10.8.0.1
Thu Sep 16 13:30:09 2011 ROUTE: route addition failed using CreateIpForwardEntry: Access is denied.   [status=5 if_index=24]
Thu Sep 16 13:30:09 2011 Route addition via IPAPI failed [adaptive]
Thu Sep 16 13:30:09 2011 Route addition fallback to route.exe
Thu Sep 16 13:30:09 2011 ERROR: Windows route add command failed [adaptive]: returned error code 1

To solve above problem, just edit the config file of the SSL vpn (the .ovpn file) in C:\Program Files\OpenVpn\config and add the following lines:

route-method exe
route-delay 2

This will force OpenVPN to add the route using Route.exe

After that , find the OpenVPN GUI icon on your desktop, right-click on it, and choose Properties from the context menu. In the Properties window, click “Advanced…” then check “Run as administrator”. Click OK to close the “Advanced Properties” window and click OK to close the OpenVPN GUI Properties window.

If you have others way to solve above issue, please share with me via leave your comment here 🙂

2 thoughts on “OpenVPN is not working on Windows Vista/7


  1. Thank you, I did not use your method but it got me on the right track. Running OpenVPU GUI in compatible mode with XP also work. Then there’s no need to change the configuration file.

    At least not in my application.

Leave a Reply

Your email address will not be published. Required fields are marked *