mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-18 11:58:30 +02:00
vpn: Place gateway route to table defined in ipvx.route-table
Previously, NM create direct route to gateway to main(254) route table regardless `ipvx.route-table` value. Fixed by setting `NMPlatformIP4Route.table_any` to `TRUE`. Resolves: https://issues.redhat.com/browse/RHEL-69901 Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
3bcbe6ed01
commit
6d06286f1d
1 changed files with 4 additions and 0 deletions
|
|
@ -1243,6 +1243,7 @@ _parent_device_l3cd_add_gateway_route(NML3ConfigData *l3cd,
|
|||
.gateway = parent_gw.addr4,
|
||||
.rt_source = NM_IP_CONFIG_SOURCE_VPN,
|
||||
.metric_any = TRUE,
|
||||
.table_any = TRUE,
|
||||
};
|
||||
} else {
|
||||
route.r6 = (NMPlatformIP6Route) {
|
||||
|
|
@ -1252,6 +1253,7 @@ _parent_device_l3cd_add_gateway_route(NML3ConfigData *l3cd,
|
|||
.gateway = parent_gw.addr6,
|
||||
.rt_source = NM_IP_CONFIG_SOURCE_VPN,
|
||||
.metric_any = TRUE,
|
||||
.table_any = TRUE,
|
||||
};
|
||||
}
|
||||
nm_l3_config_data_add_route(l3cd, addr_family, NULL, &route.rx);
|
||||
|
|
@ -1268,6 +1270,7 @@ _parent_device_l3cd_add_gateway_route(NML3ConfigData *l3cd,
|
|||
.plen = 32,
|
||||
.rt_source = NM_IP_CONFIG_SOURCE_VPN,
|
||||
.metric_any = TRUE,
|
||||
.table_any = TRUE,
|
||||
};
|
||||
} else {
|
||||
route.r6 = (NMPlatformIP6Route) {
|
||||
|
|
@ -1275,6 +1278,7 @@ _parent_device_l3cd_add_gateway_route(NML3ConfigData *l3cd,
|
|||
.plen = 128,
|
||||
.rt_source = NM_IP_CONFIG_SOURCE_VPN,
|
||||
.metric_any = TRUE,
|
||||
.table_any = TRUE,
|
||||
};
|
||||
}
|
||||
nm_l3_config_data_add_route(l3cd, addr_family, NULL, &route.rx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue