]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commit
OpenVPN: Add support for 2FA / One-Time Password
authorTimo Eissler <timo.eissler@ipfire.org>
Fri, 8 Apr 2022 08:50:20 +0000 (10:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 May 2022 13:56:22 +0000 (13:56 +0000)
commitfe255e82d855ee72666fdcfaec4f885039a5b45b
tree6979376532512f838a014cf422f026879a2765f2
parentb432a7cd97a254a1175c47f4349436f4b896905c
OpenVPN: Add support for 2FA / One-Time Password

Add two-factor authentication (2FA) to OpenVPN host connections with
one-time passwords.

The 2FA can be enabled or disabled per host connection and requires the
client to download it's configuration again after 2FA has beend enabled
for it.
Additionally the client needs to configure an TOTP application, like
"Google Authenticator" which then provides the second factor.
To faciliate this every connection with enabled 2FA
gets an "show qrcode" button after the "show file" button in the
host connection list to show the 2FA secret and an 2FA configuration QRCode.

When 2FA is enabled, the client needs to provide the second factor plus
the private key password (if set) to successfully authorize.

This only supports time based one-time passwords, TOTP with 30s
window and 6 digits, for now but we may update this in the future.

Signed-off-by: Timo Eissler <timo.eissler@ipfire.org>
config/httpd/vhosts.d/ipfire-interface-ssl.conf
config/httpd/vhosts.d/ipfire-interface.conf
config/ovpn/otp-verify [new file with mode: 0644]
html/cgi-bin/ovpnmain.cgi
html/html/images/qr-code.png [new file with mode: 0644]
html/html/images/qr-code.svg [new file with mode: 0644]
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl
lfs/openvpn