2.3.2 • Published 5 years ago

totp-openvpn v2.3.2

Weekly downloads
9
License
-
Repository
-
Last release
5 years ago

totp-openvpn

Do you have OpenVPN 'two-factor authentication' enabled? This package will allow you to create a OpenVPN credentials file which is kept up-to-date with your latest Two-Factor code.

In your OpenVPN config add: auth-user-pass password.txt

Now you never have to enter your two-factor-password again.

install

npm i -g totp-openvpn

run

totp-openvpn --code=SECRETTOTPCODE --file="C:\Program Files\OpenVPN\config\password.txt" --username=john

Options

Options:
  --help      Show help                                                [boolean]
  --version   Show version number                                      [boolean]
  --code                                                              [required]
  --file                                                              [required]
  --username                                                          [required]

How to use in real life

Run this as a service in linux or windows. Needs to run as a user that is allowed to modify the supplied file.