This project adds two-factor authentication (2FA) to OpenVPN Community on Ubuntu. To install OpenVPN on Ubuntu, use the following script: https://github.com/Nyr/openvpn-install
To add 2FA to Ubuntu, the following project has been forked and modified: https://github.com/perfecto25/openvpn_2fa
For adding email to subject in index.txt file, copy vars file from files folder to /etc/openvpn/server/easy-rsa folder.
This script has been tested on Ubuntu 24.04