diff --git a/src/core/NetworkManagerUtils.c b/src/core/NetworkManagerUtils.c index fdb2b40443..e057f5534b 100644 --- a/src/core/NetworkManagerUtils.c +++ b/src/core/NetworkManagerUtils.c @@ -28,6 +28,7 @@ #include "libnm-platform/nm-platform.h" #include "libnm-platform/nm-linux-platform.h" +#include "libnm-platform/nm-platform-utils.h" #include "nm-auth-utils.h" #include "libnm-systemd-shared/nm-sd-utils-shared.h" @@ -1750,6 +1751,12 @@ nm_utils_platform_capture_ip_setting(NMPlatform *platform, continue; } + if (route->rx.rt_source + != nmp_utils_ip_config_source_round_trip_rtprot(NM_IP_CONFIG_SOURCE_USER)) { + /* Ignore routes provided by external sources */ + continue; + } + s_route = nm_ip_route_new_binary(addr_family, route->rx.network_ptr, route->rx.plen,