From mboxrd@z Thu Jan 1 00:00:00 1970 From: ummeegge To: development@lists.ipfire.org Subject: Re: [PATCH] OpenVPN: Stop N2N connection before remove. Date: Wed, 25 Mar 2020 18:48:44 +0100 Message-ID: In-Reply-To: <3f6a245c45f969a96c794a8999c9f1869124fa26.camel@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2026565007436126562==" List-Id: --===============2026565007436126562== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Have had a double look into this one specific and it should be left as it is since it works and the other solution will breaks it. But have found some more. Need a little more time. Best, Erik Am Mittwoch, den 25.03.2020, 13:09 +0100 schrieb ummeegge: > Am Dienstag, den 24.03.2020, 14:42 +0000 schrieb Michael Tremer: > > Yes, please. If we spot a bug, we should of course fix it :) >=20 > OK, will send another patch for this. May at the evening. >=20 > Best, >=20 > Erik >=20 > >=20 > > > On 24 Mar 2020, at 12:31, ummeegge wrote: > > >=20 > > > Hi Michael, > > >=20 > > > Am Dienstag, den 24.03.2020, 11:31 +0000 schrieb Michael Tremer: > > > > Hello, > > > >=20 > > > > Brilliant fix. Thanks for looking into this so quickly. > > >=20 > > > your welcome. > > >=20 > > > >=20 > > > > Did you check if we have any other issues like this? > > >=20 > > > Not similar to that one as far as i can see. > > > This one --> > > >=20 >=20 >=20 https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dblob;f=3Dhtml/cgi-bin/ovpnmain= .cgi;hb=3D91457877199d3ac8438efc7be4cd6a50e48e37e4#l1221 > > > comes closer but it works. > > > Should i nevertheless ? > > >=20 > > > Best, > > >=20 > > > Erik > > >=20 > > > >=20 > > > > Best, > > > > -Michael > > > >=20 > > > > Reviewed-by: Michael Tremer > > > >=20 > > > > > On 24 Mar 2020, at 10:29, Erik Kapfer > > > > > wrote: > > > > >=20 > > > > > Fix #12334 > > > > >=20 > > > > > Signed-off-by: Erik Kapfer > > > > > --- > > > > > html/cgi-bin/ovpnmain.cgi | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > >=20 > > > > > diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi- > > > > > bin/ovpnmain.cgi > > > > > index e76a688fe..a6fdd6d75 100644 > > > > > --- a/html/cgi-bin/ovpnmain.cgi > > > > > +++ b/html/cgi-bin/ovpnmain.cgi > > > > > @@ -2464,7 +2464,7 @@ else > > > > >=20 > > > > > if ($confighash{$cgiparams{'KEY'}}[3] eq 'net') > > > > > { > > > > > # Stop the N2N connection before it is > > > > > removed > > > > > - system("/usr/local/bin/openvpnctrl > > > > > -kn2n > > > > > $confighash{$cgiparams{'KEY'}}[1] &>/dev/null"); > > > > > + system('/usr/local/bin/openvpnctrl', '- > > > > > kn2n', > > > > > $confighash{$cgiparams{'KEY'}}[1]); > > > > >=20 > > > > > my $conffile =3D > > > > > glob("${General::swroot}/ovpn/n2nconf/$confighash{$cgiparams{ > > > > > 'K > > > > > EY'} > > > > > }[1]/$confighash{$cgiparams{'KEY'}}[1].conf"); > > > > > my $certfile =3D > > > > > glob("${General::swroot}/ovpn/certs/$confighash{$cgiparams{'K > > > > > EY > > > > > '}}[ > > > > > 1].p12"); > > > > > --=20 > > > > > 2.12.2 > > > > >=20 > > > >=20 > > > >=20 > >=20 > >=20 >=20 >=20 --===============2026565007436126562==--