Hello,

Here we used two openvpn servers for resiliency, and we use the bird
bgp daemon to make the two boxes exchange routes. Bird however does not
pick up openvpn's routes because they are considered as "protocol boot"
in Linux' "ip route" terms, i.e. they are assumed to be an automatic
configuration, and not an administratively-configured route (see the
protocol RTPROTO part of man ip-route for the details).

So we need the attached change, which just adds "protocol static", to
express that the routes created by openvpn are to override other
dynamic routing.

What do you think?

Samuel
diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index a90195f..62ea633 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -1418,7 +1418,7 @@ add_route (struct route_ipv4 *r,

 #if defined(TARGET_LINUX)
 #ifdef ENABLE_IPROUTE
-  argv_printf (&argv, "%s route add %s/%d",
+  argv_printf (&argv, "%s route add %s/%d protocol static",
              iproute_path,
              network,
               netmask_to_netbits2(r->netmask));

Reply via email to