bidule
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!
maikcat
hi there,
please post client/server configs,
also
which openvpn version you are using on win 7?
Michael.
bidule
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
Hello
can anyone please lend a hand? Thanks! 😉
maikcat
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.