Samuel Thibault, on Sun 19 Jun 2016 21:45:38 +0200, wrote:
> 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.
Of course, v6 needs it too.
Samuel
--- a/route.c
+++ b/route.c
@@ -1113,7 +1113,7 @@ add_route (struct route *r, const struct
#if defined(TARGET_LINUX)
#ifdef CONFIG_FEATURE_IPROUTE
- argv_printf (&argv, "%s route add %s/%d via %s",
+ argv_printf (&argv, "%s route add %s/%d via %s protocol static",
iproute_path,
network,
count_netmask_bits(netmask),
@@ -1328,7 +1328,7 @@ add_route_ipv6 (struct route_ipv6 *r6, c
#if defined(TARGET_LINUX)
#ifdef CONFIG_FEATURE_IPROUTE
- argv_printf (&argv, "%s -6 route add %s/%d dev %s",
+ argv_printf (&argv, "%s -6 route add %s/%d dev %s protocol static",
iproute_path,
network,
r6->netbits,