[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

RE: [Openvpn-users] Routing problems

  • Subject: RE: [Openvpn-users] Routing problems
  • From: "Pascal Deliot" <pascal@xxxxxxxxxx>
  • Date: Thu, 20 Jan 2005 09:40:42 +0100

Hi all,
I think you should try to not change the default gateway for you windows boxes.
I mean that you should have only one default gateway for one computer, and most of the time used for internet connection.
Then if you put the default gateway on your windows box to your private network, then the computer lost the way thrue internet to the openvpn server.
You must add a (or some) valid routes to your private network and do not override the default gateway of your openvpn client.
I think this will be a better way doing the things.

De : openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx] De la part de Andrew Alston
Envoyé : jeudi 20 janvier 2005 08:14
À : openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Objet : [Openvpn-users] Routing problems

Hi All,
I'm wondering if anyone can help me out.  Im currently running a FreeBSD openvpn server at work and OpenVPN clients on various windows boxes on the outside.  Im using the dev tun mode, and all works fine, the tunnel comes up, etc etc
The problem is this, when I push the default gateway to the windows boxes, the boxes recieve the default gateway and promptly lose connection to the vpn server unless I have first manually added a route for the vpn server box out of the window boxes original default gateway.  This is a real pain as these are adsl links and the default gateways before establishing the vpns change all the time, so before I establish the vpn on the windows boxes I have to do a netstat -nr, then a route add vpnserver <gateway> with the gateway being the boxes current default gateway, I then establish the vpn link and the default route changes and all works.
Dont add the manual static route first the box forgets how to connect to the vpn server and everything dies horribly.
Is there any way I can automate the addition of that static route to a dynamic gateway like that?