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

[Openvpn-users] Load balanced vpn

  • Subject: [Openvpn-users] Load balanced vpn
  • From: "Ludovic MARCILLY" <lmarcilly@xxxxxxxxx>
  • Date: Tue, 28 Aug 2007 10:15:02 +0000
  • Importance: normal
  • Priority: normal

Hi all,

i'm using openvpn and it works well.
Now i want to do this kind of things:

                  LAN 1

              [Linux box + openvpn]
                  |             |  
              [Router 1]     [Router 2]
                  |             |
            [------ INTERNET -------]                  
                  |             |
              [Router 3]     [Router 4]
                  |             |
              [Linux box + openvpn]

I want to create two vpn:
 - the first one passing through Router 1 - Router 3
 - the second one passing through Router 2 - Router 4

By using original openvpn, it will add two routes on each openvpn linux box. What i want to do is the following: i want to delete route if the other endpoints of the vpn is not reachable in order to "load balance" vpn.

For example, use by default the Router 1 - Router 3 vpn and if i can't reach LAN2 from LAN1 via this vpn, delete the route and add the route corresponding to vpn passing through Router 2 - Router 4.

First question: is there any possibily to configure this kind of thing (or similar thing) with openvpn ? 
Second question: if i simply write a C program which try to ping the other endpoint of the vpn and change the route, will it work ?

Thanks a lot in advance.


Openvpn-users mailing list