parent
89a4be6acd
commit
d0a04c9ef7
@ -1,35 +0,0 @@
|
||||
From cf9073df710b4c650b7617a88720d4d4cd0a51bf Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D1=80=D0=BE?=
|
||||
=?UTF-8?q?=D1=85=D0=BE=D1=80=D0=BE=D0=B2?= <seriy.pr@gmail.com>
|
||||
Date: Mon, 9 Sep 2013 03:52:02 +0400
|
||||
Subject: [PATCH] Check /var/run/pluto/ipsec.info for existence before sourcing
|
||||
it. Thanks to Gordon Messmer
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=887674#c45
|
||||
|
||||
---
|
||||
src/nm-l2tp-service.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/nm-l2tp-service.c b/src/nm-l2tp-service.c
|
||||
index 38f67ef..1cc605a 100644
|
||||
--- a/src/nm-l2tp-service.c
|
||||
+++ b/src/nm-l2tp-service.c
|
||||
@@ -899,13 +899,13 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin,
|
||||
}
|
||||
sprintf(session_name, "nm-ipsec-l2tpd-%d", getpid());
|
||||
|
||||
- sys += system(". /var/run/pluto/ipsec.info;"
|
||||
+ sys += system("test -e /var/run/pluto/ipsec.info && . /var/run/pluto/ipsec.info;"
|
||||
"PATH=/usr/local/sbin:/usr/sbin:/sbin; export PATH;"
|
||||
"[ \"x$defaultrouteaddr\" = \"x\" ] && ipsec setup restart");
|
||||
|
||||
sys += system("PATH=/usr/local/sbin:/usr/sbin:/sbin ipsec whack"
|
||||
" --listen");
|
||||
- sprintf(cmd1,". /var/run/pluto/ipsec.info;"
|
||||
+ sprintf(cmd1,"test -e /var/run/pluto/ipsec.info && . /var/run/pluto/ipsec.info;"
|
||||
"PATH=/usr/local/sbin:/usr/sbin:/sbin ipsec addconn "
|
||||
" ${defaultrouteaddr:+--defaultroute} $defaultrouteaddr"
|
||||
" ${defaultroutenexthop:+--defaultroutenexthop} $defaultroutenexthop"
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -1,29 +0,0 @@
|
||||
From 5fe98f70344e842faa28014be7ba259c2db7ae8b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D1=80=D0=BE?=
|
||||
=?UTF-8?q?=D1=85=D0=BE=D1=80=D0=BE=D0=B2?= <seriy.pr@gmail.com>
|
||||
Date: Mon, 9 Sep 2013 04:38:52 +0400
|
||||
Subject: [PATCH] noccp pppd option added.
|
||||
|
||||
Thanks to Gordon Messmer https://bugzilla.redhat.com/show_bug.cgi?id=887674#c26
|
||||
---
|
||||
src/nm-l2tp-service.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/nm-l2tp-service.c b/src/nm-l2tp-service.c
|
||||
index 1cc605a..b19a44b 100644
|
||||
--- a/src/nm-l2tp-service.c
|
||||
+++ b/src/nm-l2tp-service.c
|
||||
@@ -1246,6 +1246,10 @@ nm_l2tp_config_write (NML2tpPlugin *plugin,
|
||||
/* Don't need to auth the L2TP server */
|
||||
write_config_option (pppopt_fd, "noauth\n");
|
||||
|
||||
+ /* pppd and xl2tpd on Linux require this option to support Android and iOS clients,
|
||||
+ and pppd on Linux clients won't work without the same option */
|
||||
+ write_config_option (pppopt_fd, "noccp\n");
|
||||
+
|
||||
if (service_priv && strlen (service_priv->username)) {
|
||||
write_config_option (pppopt_fd, "name %s\n", service_priv->username);
|
||||
}
|
||||
--
|
||||
1.8.3.1
|
||||
|
Loading…
Reference in new issue