On MacOS with Tunnelblick.
brew install oath-toolkit
mkdir ~/Documents/my-vpn.tblk
cp ~/Downloads/profile.ovpn ~/Documents/my-vpn.tblk/
printf "#!/bin/bash\n/usr/local/bin/oathtool --totp -b -d 6 {OTP_KEY_HERE}" > ~/Documents/my-vpn.tblk/static-challenge-response.user.sh
chmod +x ~/Documents/my-vpn.tblk/static-challenge-response.user.sh
- Replace {OTP_KEY_HERE} with the actual TOTP key.
- Replace
profile.ovpn
with the actual OpenVPN connection profile. - To install Tunnelblick profile, drag the
my-vpn.tblk
from Finder, to the Tunelblick status icon on the taskbar