Skip to content

Instantly share code, notes, and snippets.

@erickmendonca
Created July 16, 2018 04:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickmendonca/2271dfeac4dd29f38e8c689dcf1482fc to your computer and use it in GitHub Desktop.
Save erickmendonca/2271dfeac4dd29f38e8c689dcf1482fc to your computer and use it in GitHub Desktop.
Connect to VPN on Tunnelblick (macOS) with time-generated password
-- connect to VPN on Tunnelblick with timegen password
tell application "/Applications/Tunnelblick.app"
set oauthpass to do shell script "oathtool --base32 YOUR_SECRET_HERE --totp"
connect "CONFIG_NAME"
delay 0.5
tell application "System Events" to keystroke oauthpass
tell application "System Events" to keystroke return
end tell
@y0d4a
Copy link

y0d4a commented May 24, 2023

can you share more details on how to properly set up this? :)

@erickmendonca
Copy link
Author

can you share more details on how to properly set up this? :)

Hi! It's been a while. I actually don't remember how I set it up neither use Tunnelblick anymore.

@y0d4a
Copy link

y0d4a commented May 24, 2023

ok, thank you for the answer! cheers! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment