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: Tue, 24 Mar 2020 13:31:51 +0100 Message-ID: <4931c9e124fe7a63fc6dfd5339616fc15497918e.camel@ipfire.org> In-Reply-To: <6E28752D-324D-453E-9544-47C4A7D98C48@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5428114586354780231==" List-Id: --===============5428114586354780231== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Michael, Am Dienstag, den 24.03.2020, 11:31 +0000 schrieb Michael Tremer: > Hello, >=20 > Brilliant fix. Thanks for looking into this so quickly. your welcome. >=20 > Did you check if we have any other issues like this? Not similar to that one as far as i can see. This one --> 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 ? Best, Erik >=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{'KEY'} > > }[1]/$confighash{$cgiparams{'KEY'}}[1].conf"); > > my $certfile =3D > > glob("${General::swroot}/ovpn/certs/$confighash{$cgiparams{'KEY'}}[ > > 1].p12"); > > --=20 > > 2.12.2 > >=20 >=20 >=20 --===============5428114586354780231==--