You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.5 KiB
65 lines
2.5 KiB
2 days ago
|
From 70557e65436d6906233434d4db490edced586b3a Mon Sep 17 00:00:00 2001
|
||
|
From: Gris Ge <fge@redhat.com>
|
||
|
Date: Wed, 11 Dec 2024 22:22:59 +0800
|
||
|
Subject: [PATCH 1/1] 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>
|
||
|
(cherry picked from commit 6d06286f1db7421bef1c4dab5fada918c59daf87)
|
||
|
(cherry picked from commit 29f23d3519dbb4dcffc9682fbdfb721cfc0b851c)
|
||
|
(cherry picked from commit 0dc07c5ca4d32b5ea8e104cbad106da9bb5b096d)
|
||
|
(cherry picked from commit 6a04a966c28dbe04e3bd608af06a66cf0af89d21)
|
||
|
(cherry picked from commit 70060d84f268250fd0bead2928eba8739e3eb486)
|
||
|
(cherry picked from commit b92a07713c17eb55fb3f0cfa4c757e379c432e17)
|
||
|
(cherry picked from commit 2aadb5dcb08f2874f153a4e256a893ae5a99ff1e)
|
||
|
---
|
||
|
src/core/vpn/nm-vpn-connection.c | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/src/core/vpn/nm-vpn-connection.c b/src/core/vpn/nm-vpn-connection.c
|
||
|
index bbb7355016..1607d2013a 100644
|
||
|
--- a/src/core/vpn/nm-vpn-connection.c
|
||
|
+++ b/src/core/vpn/nm-vpn-connection.c
|
||
|
@@ -1239,6 +1239,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){
|
||
|
@@ -1248,6 +1249,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);
|
||
|
@@ -1264,6 +1266,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){
|
||
|
@@ -1271,6 +1274,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);
|
||
|
--
|
||
|
2.45.0
|
||
|
|