From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH 6/7] ovpnmain.cgi: remove persist-key as this is now default
Date: Sat, 11 Apr 2026 13:45:31 +0200 [thread overview]
Message-ID: <20260411114532.43348-6-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20260411114532.43348-1-adolf.belka@ipfire.org>
- The persist-key option has been enabled by default.
All the keys will be kept in memory across restart.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
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";
--
2.53.0
next prev parent reply other threads:[~2026-04-11 11:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-11 11:45 [PATCH 1/7] openvpn: Update to version 2.7.1 Adolf Belka
2026-04-11 11:45 ` [PATCH 2/7] core202: Ship openvpn Adolf Belka
2026-04-11 11:45 ` [PATCH 3/7] core202: Ship ovpnmain.cgi Adolf Belka
2026-04-11 11:45 ` [PATCH 4/7] ovpnmain.cgi: Display only IP for Real Address in Connection Statistics Page Adolf Belka
2026-04-11 11:45 ` [PATCH 5/7] ovpnmain.cgi: Change status extraction for RW connection statistics page Adolf Belka
2026-04-11 11:45 ` Adolf Belka [this message]
2026-04-11 11:45 ` [PATCH 7/7] ovpnmain.cgi: Update status extraction for Connection Status Adolf Belka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260411114532.43348-6-adolf.belka@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox