How to create connections in submenus?

22 views
Skip to first unread message

IGHOR

unread,
May 27, 2017, 10:47:51 PM5/27/17
to tunnelblick-discuss
I have read the documentation, and there is only one mention that Tunnelblick can handle folders as sub menus.
But there is no information how to create it.
How to make a group of connections and view them in a menu as submenus?

Tunnelblick developer

unread,
May 27, 2017, 11:09:33 PM5/27/17
to tunnelblick-discuss
You need to use "nested" .tblks. Here's an example:

1. Set up a folder structure like the following:

OuterFolder
InnerFolder1
Configuration1.tblk
Configuration2.tblk
Configuration3.tblk
InnerFolder2
Configuration4.tblk
Configuration5.tblk
Configuration6.tblk

2. Rename the OuterFolder to OuterFolder.tblk

3. Drag OuterFolder.tblk to the Tunnelblick icon in the menu bar to install everything.

Configurations 1, 2, and 3 will be shown under a submenu named "InnerFolder1"
Configurations 4, 5, and 6 will be shown under a submenu named "InnerFolder2"

  • The name OuterFolder will be ignored.
  • The InnerFolder names are used as the submenu names -- use whatever names you wish.
  • The Configuration names are used as the configuration names under the submenus.
You can create structures of arbitrary depth -- folders within folders within folders.

Note that you can control whether submenus are used on the "Appearance" panel of the "VPN Details" window.

IGHOR

unread,
May 28, 2017, 6:34:26 AM5/28/17
to tunnelblick-discuss
Ok, thanks!

Ighor July

unread,
May 28, 2017, 7:05:02 AM5/28/17
to tunnelbli...@googlegroups.com
Is there way to make "Connect/Disconnect all" in submeu?

> 2017-05-28 о 06:09:33 Tunnelblick developer <jkbu...@gmail.com> написав(ла):
> --
> You received this message because you are subscribed to a topic in the Google Groups "tunnelblick-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/tunnelblick-discuss/1fgihVr4g_c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to tunnelblick-dis...@googlegroups.com.
> Visit this group at https://groups.google.com/group/tunnelblick-discuss.
> For more options, visit https://groups.google.com/d/optout.

Tunnelblick developer

unread,
May 28, 2017, 9:27:33 AM5/28/17
to tunnelblick-discuss
If I understand you correctly, you could do it with AppleScript.

I think you mean "be able to connect/disconnect all of the configurations in a submenu with one command".

Most users connect to only one VPN at a time, but for someone who connects to several VPNs simultaneously, I can see how that would be helpful. An example would be an IT worker who connects to several servers at one time. (This would require very carefully constructed configurations so the routing would work correctly).

Note: I'm not talking about "nesting" VPNs, where you get to one VPN though another, because these usually (always?) require that the VPNs be established in a particular order.

You should be able to do this using AppleScript, assuming the AppleScript takes the submenu name as an argument:
 
Get the list of configurations
For each configuration:
If the configuration is on the specified submenu, connect it (or disconnect it).

The configuration name of configuration "bar" in submenu foo would be foo/bar. (It's possible it is "/foo/bar", but I don't think so. You'll have to try it.)

On Sunday, May 28, 2017 at 7:05:02 AM UTC-4, IGHOR wrote:
Is there way to make "Connect/Disconnect all" in submeu?

> 2017-05-28 о 06:09:33 Tunnelblick developer <> написав(ла):

Ighor July

unread,
May 28, 2017, 10:20:56 AM5/28/17
to tunnelbli...@googlegroups.com
Yes, I use it exactly in this case.
I have 5 running servers with separated subnets.
So I use 5 connections at time, always, without DNS, only with route to specified subnets.

> 2017-05-28 о 16:27:32 Tunnelblick developer <jkbu...@gmail.com> написав(ла):

IGHOR

unread,
May 28, 2017, 10:31:37 AM5/28/17
to tunnelblick-discuss
AppleScript is not a perfect solution.
I have tried Shimo VPN client, it does have submenus and triggers, switches to on/off groups, that do look good.
I could use it but Tunnelblick is much more stable, I'm sure is also more secure.
Thanks for answers!

неділя, 28 травня 2017 р. 16:27:33 UTC+3 користувач Tunnelblick developer написав:

Tunnelblick developer

unread,
May 28, 2017, 10:38:29 AM5/28/17
to tunnelblick-discuss
Thanks  for the idea, though. I'll add it to my to-do list, but it won't be a high priority.
Reply all
Reply to author
Forward
0 new messages