docs » Tunnelblick

connect to a Tunnelblick OpenVPN connection using a shortcut Uses applescript to interact with Tunnelblick's window

written by Tyler Thrailkill tyler.b.thrailkill@gmail.com

https://github.com/snowe2010

API Overview

API Documentation

Variables

connection_name
Signature Tunnelblick.connection_name
Type Variable
Description

String connection name

Source Source/Tunnelblick.spoon/init.lua line 34
logger
Signature Tunnelblick.logger
Type Variable
Description

Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.

Source Source/Tunnelblick.spoon/init.lua line 19
password_fn
Signature Tunnelblick.password_fn
Type Variable
Description

Function returning the password to login to the vpn connection with

Source Source/Tunnelblick.spoon/init.lua line 24
username
Signature Tunnelblick.username
Type Variable
Description

String username to log in with

Source Source/Tunnelblick.spoon/init.lua line 29

Methods

bindHotkeys
Signature Tunnelblick:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for Tunnelblick

Parameters
  • mapping - A table containing hotkey objifier/key details for the following items:
    • login - login to tunnelblick shortcut
Returns
Source Source/Tunnelblick.spoon/init.lua line 78
connect
Signature Tunnelblick:connect()
Type Method
Description

Performs the connection operation using a username, password, and connection_name

Parameters
  • None
Returns
Source Source/Tunnelblick.spoon/init.lua line 39