Files
bpfire/html/cgi-bin
Erik Kapfer 942446b553 OpenVPN: Add tls-version-min for TLSv1.2
ovpnmain.cgi delivers now 'tls-version-min 1.2' for Roadwarrior and N2N.
Since the server needs it only on server side, this patch do not includes it for Roadwarrior clients.
N2N do not uses push options therefor this directive will be included on both sides.

To integrate the new directive into actual working OpenVPN server environment, the following commands
should be executed via update.sh.

Code block start:

if test -f "/var/ipfire/ovpn/server.conf"; then
	# Add tls-version-minimum to OpenVPN server if not already there
	if ! grep -q '^tls-version-min' /var/ipfire/ovpn/server.conf > /dev/null 2>&1; then
		# Stop server before append the line
		/usr/local/bin/openvpnctrl -k
		# Append new directive
		echo >> "tls-version-min 1.2" /var/ipfire/ovpn/server.conf
		# Make sure server.conf have the correct permissions to prevent such
		# --> https://community.ipfire.org/t/unable-to-start-the-openvpn-server/2465/54?u=ummeegge
		# case
		chown nobody:nobody /var/ipfire/ovpn/server.conf
		# Start server again
		/usr/local/bin/openvpnctrl -s
	fi
fi

Code block end

Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-08-17 10:09:15 +00:00
..
2008-02-05 19:22:05 +00:00
2018-09-20 14:21:41 +01:00
2020-06-12 17:59:43 +02:00
2017-10-02 19:27:52 +01:00
2020-06-13 19:10:38 +02:00
2018-10-28 17:56:37 +01:00
2015-09-21 16:40:41 +01:00
2018-10-28 17:56:37 +01:00
2020-01-31 10:04:14 +00:00
2016-09-27 19:38:38 +02:00
2014-02-04 16:13:57 +01:00
2020-06-12 18:48:24 +02:00
2020-03-30 17:25:08 +00:00
2019-04-26 19:39:55 +02:00