dannybl
Hi!
I've recently installed OpenVPN 2.30 on a Windows Server 2003 x86. I am using a router running TomatoVPN as the client.
I think I've been able to set up everything successfully, however every time the server is rebooted the tunnel fails to establish. The following error is logged in the OpenVPN log (server):
-------- BEGIN LOG ----------
Sat Feb 16 09:56:00 2013 C:\WINDOWS\system32\route.exe ADD 192.168.1.0 MASK 255.255.255.0 192.168.66.2
Sat Feb 16 09:56:00 2013 Warning: route gateway is not reachable on any active network adapters: 192.168.66.2
Sat Feb 16 09:56:00 2013 Route addition via IPAPI failed [adaptive]
Sat Feb 16 09:56:00 2013 Route addition fallback to route.exe
Sat Feb 16 09:56:00 2013 env_block: add PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
The route addition failed: Either the interface index is wrong or the gateway does not lie on the same network as the interface. Check the IP Address Table for the machine.
-------- END LOG ----------
It seems like OpenVPN fails to set up the route on the server for the client (remote) network traffic. This can also be observed in the output of "route print" command (the route to the client is missing).
Interestingly, if I just restart the OpenVPN service it sets up the route and everything starts working, but this is somewhat of an annoyance that the service must be manually restarted to get it working.
Here is my server config:
-------- BEGIN CONFIG ----------
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key # This file should be kept secret
dh keys/dh1024.pem
server 192.168.66.0 255.255.255.0
push "route 192.168.16.0 255.255.255.0"
push "route 172.50.50.0 255.255.255.0"
client-config-dir ccd
route 192.168.1.0 255.255.255.0
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
-------- END CONFIG ----------
RRAS is disabled, no firewall or AV software installed.
Could anyone help me figure this out?