ipsec.conf: Include ipsec.user.conf and ipsec.user-post.conf
Message ID | op.xzofgbpncahio0@honk.fritz.box |
---|---|
State | Accepted |
Delegated to: | Michael Tremer |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id BB33161D7C for <patchwork@ipfire.org>; Thu, 4 Jun 2015 00:59:13 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 68A4922E2; Thu, 4 Jun 2015 00:59:13 +0200 (CEST) Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=212.227.17.12; helo=mout.web.de; envelope-from=larsen007@web.de; receiver=development@lists.ipfire.org Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPS id 05BC321BB for <development@lists.ipfire.org>; Thu, 4 Jun 2015 00:59:11 +0200 (CEST) Received: from honk.fritz.box ([2.240.191.144]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MNLS1-1Z2Ecx2HzV-006skq for <development@lists.ipfire.org>; Thu, 04 Jun 2015 00:59:10 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Date: Thu, 04 Jun 2015 00:58:49 +0200 Subject: [PATCH] ipsec.conf: Include ipsec.user.conf and ipsec.user-post.conf To: "development@lists.ipfire.org" <development@lists.ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Larsen <larsen007@web.de> Message-ID: <op.xzofgbpncahio0@honk.fritz.box> User-Agent: Opera Mail/12.17 (Win32) X-Provags-ID: V03:K0:+VHLsePY55bOdb+inogqPog2Y8gNa+BnM6Fy5oRtEs+I+lfue8u wT2E5sleWFVN+R1Ux2SQyVBipbwWFS8s84wSvOw97Nx371mbPrLWgm3zZjd+F+OEEKfaZwL 1B/pIiS8vrNKfWcMzkUHWMqS7qq62IM2i6tWVFGMGfj79cl01rnn5JY2c/j5nY6ZCtSokSj bfYC05dBaJqx9wguyJsVQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:i6WxMIpGlfg=:dlsZuPKP5HcNHCZqkMQyaA CUe+yxuafqdXAD2sZ9OqqFfYM9a4Mlvv/ojhjfODvCQEdfrMhRG/DKm3SI4qvpAo5WcESw5E+ pbF3z67i0iG3sByOsVo/Bh9i8FHjrmd3wTdp1yxiLFHEIs+6NLsrsHNP9gxLWmBCawLFJrUrM M3iqfQCGHtFUBzuLJhBM4jpEdRiUWT5IAT3N4lbAlY9ZzxJm92MKOdA4S92+UYzH9b6y7y+fR sdo9XFV8oBWrHBhp6DInN292MxPYPoMqCFwlX6HarHE4STrEHAZloPudUH3pnOC8GvJVUpMG7 D5gj7JWu/Rmek/jzp/qcHZUKkkAbUc88I3D3SIH7R0zOFG+aBGf2EBL4xhmzsoMO7wp+3kkeK Ts/QQq/t3gwMppu44fvJcNBVsQcrkBuk90oMNgv6eyOu2ABaW46i30IfJlvMWPJSR0i5SEsyT 1K4yXSEtWGTpEXuzaBW7kvE5wR88UHn2+cxknSq1WsU+qiAiIpLDSXFq5/1YC08PEQ3tcVN0Q n3mbt5m49IYYHHDqhMlkMzc2dSuD6nrCKIAxs3doB3F5hCUCkzSXfiDrA08shcoJ846aTZvWl DM28pQyR82exUawhZcjLehAihAgWU6MCyTC7dM+BWES4cL2GZUZDTwCA/QG1JGHmAmEXhOtP7 wQSwrnn03kVMsw9o5NnlnedR/QluLE2u9+8fNLhz8mQ3RY8wklnMj67+vmN4bPMOaEDU= X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Lars Schuhmacher
June 4, 2015, 8:58 a.m. UTC
Fix bug 10869 as the code has been removed by mistake by the
previous commit dfea4f86c22c83e07d0f4a6f2a02166229ecb120.
It also includes ipsec.user.conf only when it exists.
Signed-off-by: Lars Schuhmacher <larsen007@web.de>
---
html/cgi-bin/vpnmain.cgi | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
Comments
Hi, thank you for sending this in. The patch looks good and I merged it already as it is a pretty simple one. However I had again trouble applying it right away. I do not really know why. It must some sort of whitespace error because the patch applies with patch --ignore-whitespace. So this wasn't a one-time error with the last patch. Best, -Michael On Thu, 2015-06-04 at 00:58 +0200, Larsen wrote: > Fix bug 10869 as the code has been removed by mistake by the > previous commit dfea4f86c22c83e07d0f4a6f2a02166229ecb120. > It also includes ipsec.user.conf only when it exists. > > Signed-off-by: Lars Schuhmacher <larsen007@web.de> > --- > html/cgi-bin/vpnmain.cgi | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi > index 9490076..218dafa 100644 > --- a/html/cgi-bin/vpnmain.cgi > +++ b/html/cgi-bin/vpnmain.cgi > @@ -253,8 +253,10 @@ sub writeipsecfiles { > print CONF "\n"; > > # Add user includes to config file > - print CONF "include /etc/ipsec.user.conf\n"; > - print CONF "\n"; > + if (-e "/etc/ipsec.user.conf") { > + print CONF "include /etc/ipsec.user.conf\n"; > + print CONF "\n"; > + } > > print SECRETS "include /etc/ipsec.user.secrets\n"; > > @@ -407,6 +409,14 @@ sub writeipsecfiles { > > print CONF "\n"; > }#foreach key > + > + # Add post user includes to config file > + # After the GUI-connections allows to patch connections. > + if (-e "/etc/ipsec.user-post.conf") { > + print CONF "include /etc/ipsec.user-post.conf\n"; > + print CONF "\n"; > + } > + > print SECRETS $last_secrets if ($last_secrets); > close(CONF); > close(SECRETS);
On Thu, 04 Jun 2015 17:53:27 +0200, Michael Tremer <michael.tremer@ipfire.org> wrote: > thank you for sending this in. The patch looks good and I merged it > already as it is a pretty simple one. thx! > However I had again trouble applying it right away. I do not really know > why. It must some sort of whitespace error because the patch applies > with patch --ignore-whitespace. So this wasn't a one-time error with the > last patch. For testing purposes, could you please create a patch file from what you have just merged so I can compare your patch with the file that Tortoisegit created for me? Lars