This is a fork with three new functions:
- store auth info in user home folder ~/.moorauth (prevent tunnelblick to secure configuration warning)
- configurable username added to auth file
- ability to prepend pin code/password before TOTP
Moor is a simple CLI app to easily manage connections to an OpenVPN server. If you are having a hard time using Tunnelblick along with a 2FA solution like Google Authenticator, then moor may feel like fresh clean air.
- Assumes Tunnelblick macOS app to be installed.
- Assumes a VPN profile is correctly configured in Tunnelblick
- Assumes your VPN account password to be Authenticator TOTP
- node.js needs to be installed, of course
$ npm install -g https://github.com/darknos/moor.git
This should put moor
in your bin path.
Moor expects a ~/.moorrc
JSON file, that should look like
[
{
"name": "<tunnelblick-profile-name>",
"username": "<username>",
"pin": "<pin code, to be prepend a google auth code>",
"secret": "<hussssshhhhhhhhhh>"
}
]
name
is the Tunnelblick profile name as it is. secret
is the secret provided by the VPN server
Things are still quite rough around the edges. Feel free to file issues/comments. GitHub Issues