WinXP: Default Route Missing

How to customize and extend your OpenVPN installation.

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

Post Reply
peterfarge
OpenVpn Newbie
Posts: 4
Joined: Mon Apr 09, 2012 9:22 am

WinXP: Default Route Missing

Post by peterfarge » Mon Apr 09, 2012 9:29 am

Hello Forum,

I ve got a OpenVPN config from my provider. All works fine. But if I lost the connection, I'm surfing with my true IP addresse. Therefore I to deleteed the default route. Instead I have added a persistent route to the OpenVPN Gateway. Now I can connect to the OpenVPN Gateway again. But the problem is now that the Default Gateway Entry in the OpenVPN Network Device is missing. If I add it manually I get this error message:
> route -p add 0.0.0.0 mask 0.0.0.0 17.73.220.1
> 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.

The Gateway lies in the network of the OpenVPN Device and if I use the correct interface index from "route print" I still get this error.


Thanks

Peter

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: WinXP: Default Route Missing

Post by janjust » Mon Apr 09, 2012 11:47 pm

why not use

Code: Select all

redirect-gateway
(no 'def1') in the client config? in that case OpenVPN will add the route for you.

superjohn5566
OpenVpn Newbie
Posts: 1
Joined: Sat Apr 21, 2012 6:07 am

Re: WinXP: Default Route Missing

Post by superjohn5566 » Wed Apr 25, 2012 11:04 am

@janjust Thanx :D

Post Reply