Tunnelblick Ovpn



  1. Tunnelblick Ovpn File Location
  2. Tunnelblick Mac Ovpn File

Tunnelblick is a VPN client i.e. A program that allows you to connect to a VPN server. To configure OpenVPN on your Mac, follow the steps below: 1. Get your VPN Username and Password. To get your InvizBox VPN username and password, follow the steps in.

  1. Double click openvpn.tblk, and allow the option to apply installation of multiple files. Tunnelblick will ask if you want to add for All users, or just your user. Enter your computer Admin password to allow the configuration file to be added. Click the Tunnelblick icon in the Menu bar to connect.
  2. Tunnelblick VPN Configurations. A Tunnelblick VPN Configuration contains all of the information Tunnelblick needs to connect to one or more VPNs. A Tunnelblick VPN Configuration contains one or more OpenVPN configuration files, and may contain key, certificate, and script files. Everything needed is contained within the Tunnelblick VPN.

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

On This Page
Introduction
Creation and Modification
Installation
Automatic Installation
Nested Configurations
Format
Info.plist
Preferences
Up/Down Scripts
Tunnelblick Scripts
CFBundleIdentifier Conflicts
Name Conflicts During Installation
Name Conflicts After Installation
Example Script to Create .tblks with IP Address Checking Disabled

Introduction

A Tunnelblick VPN Configuration (a 'Configuration') is a folder with an extension of .tblk that contains information about one or more VPN configurations.

  • Configurations provide a convenient way to distribute VPN configurations separately from the Tunnelblick application itself.
  • Configurations may be installed to be private to a single user or shared by all users of the computer.
  • Configurations may be automatically installed when Tunnelblick is installed.
  • Configurations may contain identification and version information to assist in version control.
  • Configurations may contain scripts that are run at particular points in the connection process.
  • Installing a Configuration requires a computer administrator username/password (as does Tunnelblick installation).
  • The configuration file of a Configuration that is private may be edited. The configuration file of a Configuration that is shared may only be examined.

Configurations are available in Tunnelblick 3.1 and up. Some features of Configurations described in this document may only be available on Tunnelblick 3.4beta30 and higher.

Configurations must be installed before they can be used. Install a Configuration by dragging it to the Tunnelblick icon in the menu bar. (The Tunnelblick application must have been installed before the Configuration is installed.)

Creation and Modification

See Creating and Installing a Tunnelblick VPN Configuration and Modifying a Tunnelblick VPN Configuration.

Installation

A Configuration is installed by dropping it on the Tunnelblick icon in the menu bar. A configuration can be installed automatically when Tunnelblick is installed from a disk image or a folder expanded from a .zip file (see Automatic Installation).

If there is only one OpenVPN configuration file inside a .tblk, a single Configuration will be installed and will have the name of the .tblk — the name of the configuration file will be ignored.

If there is more than one OpenVPN configuration file inside a .tblk, a Configuration will be installed for each configuration file, and will have the name of the configuration file.

When a Configuration is installed, it's contents are copied and arranged in a special way and the copy is secured by setting the ownership and permissions on the copy's contents.

Unless specified otherwise in an Info.plist, when a Configuration is installed the user will be asked whether the Configuration is to be shared or private (for only that user). Configurations to be shared are copied to /Library/Application Support/Tunnelblick/Shared; Configurations to be kept private are copied to ~/Library/Application Support/Tunnelblick/Configurations.

Automatic Installation

When Tunnelblick is installed by Control-clicking a Tunnelblick.app that is not in /Applications and clicking 'Open', all .tblk Configurations in the 'auto-install' and '.auto-install' folders that are in the same folder that contains the Tunnelblick.app being installed are installed (subject to CFBundleIdentifier Conflicts and Name Conflicts During Installation).

The 'auto-install' and '.auto-install' folders can also contain a file named 'preferences.plist'. It may contain a 'set-only-if-not-present' key and/or a 'always-set' key. The value for each key should be a dictionary containing preferences to be set under the specified conditions.

Thus, one can construct a disk image (or a .zipped folder) which contains Tunnelblick.app and an 'auto-install' folder containing configurations and preferences to be installed along with Tunnelblick.

Nested Configurations

'Nested' Configurations make it easy to distribute many configurations in a single file.

Configurations may be nested one level deep. That is, a Configuration may contain within it other Configurations (and may also contain OpenVPN configuration files that are not in a Configuration). When such a Configuration is installed, everything within it is installed. The Configurations within a Configuration may not themselves include Configurations, however — only one level of included Configurations is allowed.

If configurations are in subfolders, the structure of the subfolders will be replicated when the configurations are installed.

Format

Tunnelblick Configurations are folders with an extension of '.tblk'. The extension causes macOS to treat the folder as a 'package' — in most cases it is treated as if it were a single file. To look at the contents of a package (i.e. inside what was the folder), Control-click the package and select 'Show Package Contents'.

Before installation, a Tunnelblick VPN Configuration can contain files and folders including:

  • An Info.plist file (see Info.plist).
  • One or more 'nested' Tunnelblick VPN Configurations.
  • One or more OpenVPN configurations (files with .ovpn or .conf extensions).
  • One or more key, certificate, or script files.

After installation, the contents of a Tunnelblick VPN Configuration are arranged as follows. Before installation all files can be arranged this way, or all files can be at the top level of the .tblk (that is, without the 'Contents/Resources' structure).

Info.plist

Info.plist is optional. If it exists, it must be a macOS property list file, with keys from the following table. The only mandatory key is TBPackageVersion; all others are optional.

KeyDescriptionDefaultExamples
CFBundleIdentifier (case-insensitive)A string that uniquely identifies the configuration and the individual or organization distributing the Configuration.(None)com.example.tbconfigs.config27a
CFBundleVersionA string representing the version number that is used to determine later/earlier versions of the Configuration (see CFBundleIdentifier Conflicts). The string must consist of a major version number, optionally followed by a decimal point and a minor version number, optionally followed by a decimal point and a bugfix version number.(None)1.16.4
CFBundleShortVersionStringA string to display as the version (in Get Info, for example).(None)1.6 Test 3
TBMinimumTunnelblickVersionThe minimum version of Tunnelblick with which the configuration should be installed. (Available in Tunnelbick 3.7.6beta03+.)(None)3.7.4a, 3.7.5, 3.7.6beta01
TBMaximumTunnelblickVersionThe maximum version of Tunnelblick with which the configuration should be installed. (Available in Tunnelbick 3.7.6beta03+.)(None)3.7.4a, 3.7.5, 3.7.6beta01
TBPackageVersion (required)A string with the Configuration version number.1The string '1' (without the quotation marks)
TBReplaceIdenticalA string specifying whether to install the Configuration over a Configuration with the same CFBundleIdentifier. Must be 'yes', 'no', 'ask', or 'force' (without the quotation marks).askyes
TBSharePackageA string specifying whether to install the Configuration as shared or private, or to ask the user. Must be 'shared', 'private', or 'ask' (without the quotation marks).askask
TBKeepExistingFilesListAn array of filenames. Used for a configuration that is replacing an existing configuration. Each array entry is the filename (without path information) of a file that is not in the configuration being installed and which should be left as it is in the existing configuration that is being replaced. A single * character in the filename will match any number of any characters in the name.(None)client.key, client*.key, client.*
TBPreferenceSee Preferences.TBPreferenceuseDNS
TBAlwaysSetPreferenceSee Preferences.TBAlwaysSetPreferenceuseDNS
TBUninstallIf present (with any value), the .tblk will be uninstalled.

Preferences

A Configuration's Info.plist may also optionally contain entries (strings, numbers, and booleans) with keys that start with 'TBPreference' or 'TBAlwaysSetPreference'. The entries are preferences for the configuration. Each entry will be copied to the user's regular preferences each time Tunnelblick loads or uses the Configuration (when Tunnelblick is launched or the Configuration is installed or connected). 'TBPreference' items are copied only if the preference is not already set, so they are for initial settings that a user is allowed to override. 'TBAlwaysSetPreference' items always are copied, so the user is, in effect, not allowed to override them. When the entries are copied, 'TBPreference' or 'TBAlwaysSetPreference'is replaced with the display name of the Configuration. Note that the 'autoConnect' option triggers a connection when Tunnelblick is started, so a configuration with 'TBPreferenceautoConnect' is not connected automatically when it is installed, but is connected automatically the next time Tunnelblick is launched. Note: 'TBAlwaysSetPreference' is only available in Tunnelblick 3.3beta10 and later.

In a Deployed version of Tunnelblick, the forced-preferences in Deploy will override any Configuration-specified preferences.

Up/Down Scripts

If the Configuration contains up.tunnelblick.sh, down.tunnelblick.sh, up.sh, down.sh, nomonitor.up.sh, and/or nomonitor.down.sh, those scripts will be used instead of Tunnelblick's standard scripts, or scripts in Deploy, when connecting with the Configuration and 'Set nameserver' is selected for the Configuration's configuration.

For backward compatibility, scripts other than up.tunnelblick.sh and down.tunnelblick.sh will be used if they exist.

In a Deployed version of Tunnelblick, a Configuration's up/down scripts will override the corresponding scripts in Deploy.

Tunnelblick Scripts

If the Configuration includes pre-connect.sh, post-tun-tap-load.sh, connected.sh, reconnecting.sh, post-disconnect.sh scripts, they will be executed (as root) at the corresponding point in the connection process. This allows manipulation of kexts and/or the network configuration and user notification of events. (If the scripts load special kexts, you can use the '-doNotLoadTapKext' and '-doNotLoadTunKext' preferences to cause Tunnelblick to not try to load its own kexts.) post-tun-tap-load.sh, connected.sh, and reconnecting.sh are available in Tunnelblick 3.2beta02 and later only. See Using Scripts for more details.

CFBundleIdentifier Conflicts

On automatic or manual installation of a Configuration, if a Configuration with an identical CFBundleIdentifier is already installed:

  • If the new Configuration's 'TBReplaceIdentical' is 'no', the Configuration will not be installed.
  • If the new Configuration's 'TBReplaceIdentical' is 'yes', the existing Configuration will be replaced without notifying the user if it has an equal or higher 'CFBundleVersion' than the existing installed Configuration. If it has a lower 'CFBundleVersion', the Configuration will not be installed.
  • If the new Configuration's 'TBReplaceIdentical' is 'force', the existing Configuration will be replaced without notifying the user.
  • If the new Configuration's 'TBReplaceIdentical' is 'ask', the existing Configuration will be replaced only after getting the user's consent.

When an existing Configuration is replaced, the new copy takes the display name of the existing version, regardless of the name of the new Configuration. Thus, the new version will inherit the existing version's preferences and Keychain items.

Name Conflicts During Installation

If the display name of a Configuration is the same as the name of an existing .ovpn or .conf file or an existing Configuration that has a different CFBundleIdentifier, the user will be asked to rename the Configuration or cancel the installation.

Name Conflicts After Installation

Configurations are displayed from

  • Tunnelblick.app/Contents/Resources/Deploy
  • /Library/Application Support/Tunnelblick/Shared/*.tblk
  • /Library/Application Support/Tunnelblick/Shared/.ovpn and .conf
  • ~/Library/Application Support/Tunnelblick/Configurations/*.tblk
  • ~/Library/Application Support/Tunnelblick/Configurations/.ovpn and .conf

in that order. If a display name matches an earlier display name, the later configuration will be ignored and only the earlier display name will be displayed, making only the earlier configuration available.

Example Script to Create .tblks with IP Address Checking Disabled

Below is a bash script that creates .tblks from OpenVPN configuration files. Each .tblk includes an Info.plist that disables IP address checking. (The script can be modified to set different preferences for the configuration so IP address checking is enabled, or to enable or disable some other feature.)

The .tblks can be installed (as usual) by dragging/dropping them onto the Tunnelblick icon in the menu bar. They may be dragged/dropped individually or as a group.

Or the .tblks can be copied into a folder, and the folder renamed with an extension of .tblk. That (outer) .tblk can be compressed and sent to users as a single .zip file. After decompressing the .zip file, users could then drag/drop the (outer) .tblk onto the Tunnelblick icon in the menu bar to install all of the configurations at once.

(To create a subfolder structure to group configurations together, arrange the inner .tblks in folders as desired before renaming the outer folder to have a .tblk extension.)

Note: the script looks long and complicated but almost all of it is dealing with the command line arguments. The part of the script that actually creates the .tblk are these three commands near the end, which create the .tblk, copy the OpenVPN file, and create the Info.plist.

'no_ipa_check.sh':

Hey,
I have problems connecting with Tunnelblick.
'Tunnelblick was unable to start OpenVPN to connect RB_VPN. For details, see the log in the VPN Details window.'Tunnelblick
Anybody any idea what I'm doing wrong?
Thank you so so much! Help is really appreciated!
Tunnelblick OvpnAlex
Log:
2014-07-09 15:22:45 *Tunnelblick: OS X 10.9.4; Tunnelblick 3.4beta28 (build 3872); prior version 3.3.4 (build 3518.3872)

Tunnelblick Ovpn File Location

2014-07-09 15:22:45 *Tunnelblick: Attempting connection with RB_VPN using shadow copy; Set nameserver = 1; monitoring connection
2014-07-09 15:22:45 *Tunnelblick: openvpnstart start RB_VPN.tblk 1337 1 0 1 0 16689 -ptADGNWradsgnw 2.2.1
2014-07-09 15:22:46 *Tunnelblick:
Could not start OpenVPN (openvpnstart returned with status #251)
Contents of the openvpnstart log:
*Tunnelblick: openvpnstart log:
Tunnelblick:
OpenVPN returned with status 1, errno = 13:
Permission denied
Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn
--daemon
--log
/Library/Application Support/Tunnelblick/Logs/-SUsers-Salanegger-SLibrary-SApplication Support-STunnelblick-SConfigurations-SRB_VPN.tblk-SContents-SResources-Sconfig.ovpn.1_0_1_0_16689.1337.openvpn.log
--cd
/Library/Application Support/Tunnelblick/Users/alanegger/RB_VPN.tblk/Contents/Resources
--config
/Library/Application Support/Tunnelblick/Users/alanegger/RB_VPN.tblk/Contents/Resources/config.ovpn

Tunnelblick Mac Ovpn File

--cd
/Library/Application Support/Tunnelblick/Users/alanegger/RB_VPN.tblk/Contents/Resources
--management
127.0.0.1
1337
--management-query-passwords
--management-hold
--script-security
2
--up
/Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -f -ptADGNWradsgnw
--down
/Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -f -ptADGNWradsgnw
Contents of the OpenVPN log:
Options error: Unrecognized option or missing parameter(s) in /Library/Application Support/Tunnelblick/Users/alanegger/RB_VPN.tblk/Contents/Resources/config.ovpn:11: verify-x509-name (2.2.1)Tunnelblick
Use --help for more information.
More details may be in the Console Log's 'All Messages'
Options error: Unrecognized option or missing parameter(s) in /Library/Application Support/Tunnelblick/Users/alanegger/RB_VPN.tblk/Contents/Resources/config.ovpn:11: verify-x509-name (2.2.1)
Use --help for more information.
2014-07-09 15:22:45 *Tunnelblick: openvpnstart starting OpenVPN