From patchwork Sat Apr 11 11:45:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 9689 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4ftBgq0tW5z3x95 for ; Sat, 11 Apr 2026 11:45:43 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E7" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4ftBgn4DXGz7Dd for ; Sat, 11 Apr 2026 11:45:41 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4ftBgl47qDz34Ct for ; Sat, 11 Apr 2026 11:45:39 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4ftBgj0Nhjz33pl for ; Sat, 11 Apr 2026 11:45:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4ftBgh5pjxz5j5; Sat, 11 Apr 2026 11:45:36 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1775907936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YSWEvKswW9UbRIDvI288/3GC0IxUI7Uv5I5MUNsaEvM=; b=xikzSpEHc7p+dhCb/zHo9IEfr3ehX8QbzvfZEd5vOAprc8vfd3EZ1YVeLzpFAoRbuZ7yNn gWI1+cRaqeeVKSDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1775907936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YSWEvKswW9UbRIDvI288/3GC0IxUI7Uv5I5MUNsaEvM=; b=SEH1QKPC8QPgyiLGX15wHj0ICTg4w8qYqS4ao1aQ4ekfM+3IlS9kuZ9jSLHYpgatBuRFg+ LYJsFbt3Gm8WHVnmLWaIFq+ZP7ylX/NhuCi+00e+KK3/Lm4TmF43pzZqPt1+OZVazY+5pd 9Zt+OLIen4GZE6ssoxg21KRhplVREChh5GiQnBNgBzJ1IqViOM8wJoHnqSqGVjF+LwIVaU fDmiSo20afkz6FRazfu60wKzIvDbal7b8Uy/Cx7vNTix4Gc4ZSH0V2HLWP95FvZxySqubw ahvNySXDHhwK3rSHaZfLHXuAs4aEa8vQzDI3sx9id7p8DRV89WBkVEiwVDcM2w== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 6/7] ovpnmain.cgi: remove persist-key as this is now default Date: Sat, 11 Apr 2026 13:45:31 +0200 Message-ID: <20260411114532.43348-6-adolf.belka@ipfire.org> In-Reply-To: <20260411114532.43348-1-adolf.belka@ipfire.org> References: <20260411114532.43348-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - The persist-key option has been enabled by default. All the keys will be kept in memory across restart. Signed-off-by: Adolf Belka --- html/cgi-bin/ovpnmain.cgi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index def043d9b..3fb356acd 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -400,7 +400,6 @@ sub writeserverconf { print CONF "reneg-sec 86400\n"; print CONF "user nobody\n"; print CONF "group nobody\n"; - print CONF "persist-key\n"; print CONF "persist-tun\n"; print CONF "verb 3\n"; @@ -1247,7 +1246,6 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General print SERVERCONF "user nobody\n"; print SERVERCONF "group nobody\n"; print SERVERCONF "persist-tun\n"; - print SERVERCONF "persist-key\n"; print SERVERCONF "script-security 2\n"; print SERVERCONF "# IP/DNS for remote Server Gateway\n"; @@ -1346,7 +1344,6 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General print CLIENTCONF "user nobody\n"; print CLIENTCONF "group nobody\n"; print CLIENTCONF "persist-tun\n"; - print CLIENTCONF "persist-key\n"; print CLIENTCONF "script-security 2\n"; print CLIENTCONF "# IP/DNS for remote Server Gateway\n"; print CLIENTCONF "remote $cgiparams{'REMOTE'}\n"; @@ -2331,7 +2328,6 @@ END print CLIENTCONF "user nobody\n"; print CLIENTCONF "group nobody\n"; print CLIENTCONF "persist-tun\n"; - print CLIENTCONF "persist-key\n"; print CLIENTCONF "script-security 2\n"; print CLIENTCONF "# IP/DNS for remote Server Gateway\n"; print CLIENTCONF "remote $vpnsettings{'VPN_IP'}\n";