The tool starts the openvpn
client and passes the authentication details. This
includes calculating the TOTP code and concatenating it with the password.
Configuration values an either be set as environment variables or in the .openvpn file in the home directory
Set the following variables:
OPENVPN_CONFIG_FILE
Path to a the OpenVPN configuration file to pass to the clientOPENVPN_USERNAME
Username used to authenticate with the VPNOPENVPN_PASSWORD
Password used to authenticate with the VPNOPENVPN_TOTP_SECRET
The secret used to generate the 2FA code that is concatenated with the password.
OPENVPN_CONFIG_FILE=~/myconfig.ovpn
OPENVPN_USERNAME=user@example.com
OPENVPN_PASSWORD=mysecretpassword
OPENVPN_TOTP_SECRET=123456789abcdef
To start the vpn run vpn
on the command line