tunnelblick icon Tunnelblick free software for OpenVPN on macOS We need translators for several languages…

Highlighted Articles
  News
  Installing Tunnelblick
  Uninstalling Tunnelblick
  Setting up Configurations
  Using Tunnelblick
  Getting VPN Service
  Common Problems
  Configuring OpenVPN
  Release Notes
  Thanks
  FAQ

Discussion Group
  Read Before You Post

Command Line Installation of Tunnelblick and Configurations

Tunnelblick includes an "installer" program that can, when run as root, install or replace the Tunnelblick application itself, or install or modify safe or unsafe configurations.

Installing or replacing Tunnelblick from the command line

To copy Tunnelblick.app to /Applications, secure it, install its "daemon" (helper), and make it ready to be launched and used by any user (standard or admin), execute the following command:

      sudo     path/Contents/Resources/installer 259

where path is the path to the copy of Tunnelblick.app to be installed.

Note:

  • Tunnelblick's settings and configurations will not be modified.
  • When replacing an existing copy of Tunnelblick.app, the old version will be moved from /Applications to the Trash.

Installing or replacing configurations from the command line

Once Tunnelblick has been installed, the following commands can be used to install a configuration:

Note:

  • These commands require Tunnelblick 4.0.0beta06 or higher.
  • When replacing an existing configuration, settings for the configuration are not modified.

Install a Shared configuration (one which can be used by all users of the computer):

      sudo /Applications/Tunnelblick.app/Contents/Resources/installer 0x7000     source-path     [subfolder]

where source-path is the path to the .tblk to be installed and subfolder is an optional subfolder of the Tunnelblick configurations in which the configuration is to be installed.

Examples:

      sudo /Applications/Tunnelblick.app/Contents/Resources/installer 0x7000 ~/Desktop/VPN1.tblk

will install a configuration which will appear in Tunnelblick as "VPN1".

      sudo /Applications/Tunnelblick.app/Contents/Resources/installer 0x7000 ~/Desktop/VPN1.tblk usa/michigan/detroit

will install a configuration which will appear in Tunnelblick as "usa/michigan/detroit/VPN1".

Install a Private configuration (one which can be used only by one user of the computer):

      sudo /Applications/Tunnelblick.app/Contents/Resources/installer 0x6000     username     source-path     [subfolder]

where username is the short username of the user who will be able to use the configuration, source-path is the path to the .tblk to be installed, and subfolder is an optional subfolder of the Tunnelblick configurations in which the configuration is to be installed.

Examples:

      sudo /Applications/Tunnelblick.app/Contents/Resources/installer 0x6000 johnsmith ~/Desktop/VPN1.tblk

will install a configuration which will appear in Tunnelblick as "VPN1" and which can be used only by user "johnsmith".

      sudo /Applications/Tunnelblick.app/Contents/Resources/installer 0x6000 johnsmith ~/Desktop/VPN1.tblk usa/michigan/detroit

will install a configuration which will appear in Tunnelblick as "usa/michigan/detroit/VPN1" and which can be used only by user "johnsmith".