"The route addition failed: The object already exists" 7 x64

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
bidule
OpenVpn Newbie
Posts: 3
Joined: Sun Jul 24, 2011 4:27 pm

"The route addition failed: The object already exists" 7 x64

Post by bidule » Sun Jul 24, 2011 4:37 pm

Hello all. :)

I have an OpenVPN server running on my DD-WRT router.
This VPN has worked very well and is currently working 100% and I can connect my XP SP3 laptop.
Now, I've installed OpenVPN to another laptop running 7 x64.
But I can't get it to work. I've installed the latest build, have disabled UAC and have it set to run with admin priviledges.
During the connection I get this message:

"The route addition failed: The object already exists"

Straight after the init completes (straight after the message posted above) I go to ip-adress.com and can indeed see that my IP is the server's IP. But after a few seconds I refresh the ip-checker and it reverts back to the location IP.

I really don't know what I'm doing wrong, I copied my static.key and the openvpn.ovpn file from the XP machine which is running flawlessly.

Could somebody give me a hand here? I'd really appreciate it, I'm leaving within a couple of days and need my openvpn for road-war. Thanks in advance!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: "The route addition failed: The object already exists" 7

Post by maikcat » Sun Jul 24, 2011 5:36 pm

hi there,

please post client/server configs,

also

which openvpn version you are using on win 7?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

bidule
OpenVpn Newbie
Posts: 3
Joined: Sun Jul 24, 2011 4:27 pm

Re: "The route addition failed: The object already exists" 7

Post by bidule » Sun Jul 24, 2011 6:13 pm

Hi there, thanks for your quick reply.

Sure thing!

Here's the dd-wrt startup script that has worked for me for the past 3 years (and is still working with the XP box):

Startup:
openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
echo "
-----BEGIN OpenVPN Static key V1-----
(...)
-----END OpenVPN Static key V1-----
" > /tmp/static.key
ln -s /usr/sbin/openvpn /tmp/myvpn
/tmp/myvpn --dev tap0 --secret /tmp/static.key --comp-lzo --port 53001 --proto udp --verb 3 --daemon



Firewall:
iptables -I INPUT 1 -p tcp --dport 1194 -j ACCEPT
iptables -I INPUT 1 -p udp --dport 53001 -j ACCEPT


Client config:

remote XX.XXX.XXX.XXX (have omitted it for obvious reasons)
port 53001
dev tap
secret static.key
proto udp
comp-lzo
route-gateway 192.168.3.1
redirect-gateway

this is the config that works on the XP client, which I tried also on the 7 box. It gave me a couple of messages other than the "...object already exists blablabla" so I added the following two lines (which I found were advised on a couple of forums):

route-method exe
route-delay 2

and now the init ends by
"OK
OK
The route addition failed: The object already exists" (it's actually written in french with a couple of bad characters)

My router is set up to run as 192.168.3.1 to avoid conflicts with other routers.

Version of openvpn on the 7 box: it's the latest 2.2.1, downloaded it this afternoon.

The curious thing is that the first seconds after connecting the traffic is indeed routed to the vpn as i check the Ipchicken page, after a couple of seconds it's dropped to the site IP....

bidule
OpenVpn Newbie
Posts: 3
Joined: Sun Jul 24, 2011 4:27 pm

Re: "The route addition failed: The object already exists" 7

Post by bidule » Mon Jul 25, 2011 10:33 pm

Hello

can anyone please lend a hand? Thanks! ;)

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: "The route addition failed: The object already exists" 7

Post by maikcat » Tue Jul 26, 2011 6:57 am

please use verb 4 on client and post logs..

also can you post the output of netstat -nr on client before & after the connection?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply