networkmanager-fortisslvpn: add fix for pppd-2.5.2 (#443701)

authored by lassulus and committed by GitHub 32a75db9 07c84e68

+33
+1
pkgs/by-name/ne/networkmanager-fortisslvpn/package.nix
··· 35 inherit openfortivpn; 36 }) 37 ./support-ppp-2.5.0.patch 38 ]; 39 40 strictDeps = true;
··· 35 inherit openfortivpn; 36 }) 37 ./support-ppp-2.5.0.patch 38 + ./pppd-accept-remote.patch 39 ]; 40 41 strictDeps = true;
+32
pkgs/by-name/ne/networkmanager-fortisslvpn/pppd-accept-remote.patch
···
··· 1 + From cea75ece3eaecb17922feda81a4ee81718536d1a Mon Sep 17 00:00:00 2001 2 + From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru> 3 + Date: Fri, 14 Mar 2025 07:14:43 +0300 4 + Subject: [PATCH] Fix routing with pppd 2.5 5 + 6 + Tested on ROSA 13 with pppd-2.5.2 and openfortivpn-1.23.1. 7 + Without this change, routes are not set up correctly and connection does not work properly. 8 + 9 + Solution is from https://aur.archlinux.org/packages/networkmanager-fortisslvpn (see PKGBLUILD and comments). 10 + --- 11 + src/nm-fortisslvpn-service.c | 4 ++++ 12 + 1 file changed, 4 insertions(+) 13 + 14 + diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c 15 + index 8796ace..8f69333 100644 16 + --- a/src/nm-fortisslvpn-service.c 17 + +++ b/src/nm-fortisslvpn-service.c 18 + @@ -225,7 +225,11 @@ run_openfortivpn (NMFortisslvpnPlugin *plugin, NMSettingVpn *s_vpn, GError **err 19 + g_ptr_array_add (argv, (gpointer) g_strdup ("-c")); 20 + g_ptr_array_add (argv, (gpointer) g_strdup (priv->config_file)); 21 + 22 + +#if WITH_PPP_VERSION >= PPP_VERSION(2,5,0) 23 + + g_ptr_array_add (argv, (gpointer) g_strdup ("--pppd-accept-remote")); 24 + +#else 25 + g_ptr_array_add (argv, (gpointer) g_strdup ("--no-routes")); 26 + +#endif 27 + g_ptr_array_add (argv, (gpointer) g_strdup ("--no-dns")); 28 + ip4_config = nm_connection_get_setting_ip4_config (priv->connection); 29 + if (!nm_setting_ip_config_get_ignore_auto_dns (ip4_config)) { 30 + -- 31 + GitLab 32 +