|
Mar
15
|
OpenVPN+GUI (openvpn-2.0.9-gui-1.0.3) in client mode will connect to the remote OpenVPN server, but will not accept the routes. Error in the log is as follows:
ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [if_index=18]
Route addition via IPAPI failed
Solution:
add the following to the end of the configuration (ovpn) file:
route-method exe
route-delay 2
November 24th, 2009 at 11:25 pm
It works on Windows 7. Thank you!
November 28th, 2009 at 6:14 am
Thank you! You often write very interesting articles. You improved my mood.
December 6th, 2009 at 5:20 pm
Tried it – added
route-method exe
route-delay 2
to the ovpn config file … and still am not able to get online using Witopia ovpn sw.
Suggestions?
December 6th, 2009 at 9:13 pm
i don’t know how Witopia works.. sorry.. I use my own openvpn server on linux.
January 20th, 2010 at 9:55 am
Hi MG, after adding “route-method exe” and “route-delay 2″ to my config, the above error is gone – thank you – although I still cannot rdp the VPN site – doing the same under XP it works – Windows 7 is a problem.
Please help.
January 21st, 2010 at 3:39 pm
Find OpenVPN GUI icon, press shift, right click on icon and select “Run as administrator”. Now works perfect!
January 21st, 2010 at 5:57 pm
I use windows 7 and i don’t have this problem.. maybe because my accout has administrative rights.
January 30th, 2010 at 5:44 am
thank you.
February 26th, 2010 at 6:01 pm
Whole day of trying and then: google found solution. Thanks MG.
openvpn 2.1.1 was supposed to fix this problem. Unfortunately it didn’t.
Thanks again.
April 13th, 2010 at 8:50 am
Windows Vista needs Open VPN GUI to run as administrator… so right-click openvpn GUI and select ‘run as administrator’ and you should be fine.
April 23rd, 2010 at 2:22 pm
YESSS !!!
route-method exe
route-delay 2
ITS WORKK!!!
thanks..
May 4th, 2010 at 5:36 pm
I’m trying to use this fix on a vista laptop – but when I right click on openvpn the “run as administrator” check-box is greyed out. I’ve tried switching off UAC but it didnt do anything.
May 21st, 2010 at 4:31 pm
I have been trying to figure this out for a very long time! Thanks so much!
June 4th, 2010 at 7:02 am
You are a life saver!
Many thanks!
July 5th, 2010 at 11:13 am
Thanks for ur help !
August 13th, 2010 at 1:30 am
Thanks mate! Works great on W7. May I ask how did you figure it out?
August 13th, 2010 at 8:08 am
Google is my friend
September 23rd, 2010 at 2:13 am
Perfect. Thanks
October 30th, 2010 at 7:45 pm
Great! Muy bien!
Thank you ! Gracias
It works! funciona a la perfección
November 29th, 2010 at 2:30 am
Mon Nov 29 08:26:00 2010 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Nov 29 08:26:00 2010 TLS Error: TLS handshake failed
Mon Nov 29 08:26:00 2010 TCP/UDP: Closing socket
Mon Nov 29 08:26:00 2010 SIGUSR1[soft,tls-error] received, process restarting
Mon Nov 29 08:26:00 2010 Restart pause, 2 second(s)
dis problem i encountered..it keeps restarting..
April 15th, 2011 at 7:25 am
Great!
Solved my problem
August 4th, 2011 at 11:26 pm
I add these parameters.
But when i run openvpn (on Win7) without admin rights –
i have ERROR: Windows route add command failed: system() returned error code 1
when run with admin rights –
i have the same
ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [if_index=18]
Route addition via IPAPI failed
wtf?
August 5th, 2011 at 2:33 am
oh, it my mistake.
).
when i add route params to the config file, my text editor opens a “copy” of the config file and doesn’t save the changes to the “original” file (because the same UAC
now all works fine.
Thnx!
November 18th, 2011 at 5:10 pm
hi,
thank you so much.i am very happy.its work me.
November 29th, 2011 at 3:29 pm
I have the same problem on my Win 7 Pro x64.
My VPN-server works under CentOS 6.0 and has such config:
local 192.168.0.1
port 1194
proto udp
dev tun
ca ca.crt
cert srv.crt
key srv.key
dh /usr/local/openvpn/easy-rsa/keys/dh1024.pem
crl-verify /usr/local/openvpn/easy-rsa/keys/revoke-test.pem
server 10.10.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push “route 172.16.0.0 255.255.255.0″
push “route 192.168.0.0 255.255.255.0″
client-config-dir /usr/local/openvpn/ccd
route 172.16.1.0 255.255.255.0
keepalive 10 120
comp-lzo
persist-key
persist-tun
cipher AES-128-CBC
Client has this config:
client
dev tun
proto udp
remote 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 3
route-method exe
route-delay 2
And routes is still does not applied from the server.
November 29th, 2011 at 3:37 pm
Yepppp!!!!!!! It works after reboot!!!!!!!!
THANKS!!!!!!
December 1st, 2011 at 5:32 pm
Great! Love you for this solution!!! ;O)
December 3rd, 2011 at 8:03 pm
Genial Amigo!! Gracias!!
December 7th, 2011 at 8:39 am
it takes care for the problem but the vpn does not work if i add these commands
December 25th, 2011 at 7:59 pm
It works also for windows vista
Thank you!