Jump to content
deanishe

VPN Connection Manager

Recommended Posts

VPN Connection Manager

Manage your Tunnelblick or Viscosity VPN connections from Alfred.

demo.gif
 
 
Usage

  • vpn [<query>] — View and filter Tunnelblick/Viscosity VPN connections.
        - — Connect/disconnect selected connection.
  • vpnconf [<query>] — View and edit workflow configuration.
    • Workflow Update Available! / Workflow Is up to Date — Workflow update availablity.
      • or — Check for and install update.
    • App Name (active) — The currently selected VPN application.
    •  App Name (not installed) — Supported, but not installed, VPN application.
      •   — Go to this application's website.
    •  App Name — Installed, but unused, application.
      •   — Use this application to manage VPN connections.
    •  Online Docs — Workflow README.
      • — Open in your default browser.
    •  Help — This forum thread.
      • — Open in your default browser.
    • Report Problem — Workflow's GitHub issues.
      • — Open in your default browser.

 

If you haven't entered a query, any active VPN connections will be shown at the top of the list. Action an active connection to disconnect it.
 
If you are connected to multiple VPNs, an additional "Disconnect All" item will be shown first.
 
Download & Installation
 
Get the workflow from GitHub releases.
 

Edited by deanishe
Remove Packal link

Share this post


Link to post

Hi,

 

I recently manually updated your workflow by downloading the latest release from Github and opening the .workflow with Alfred. Although the workflow shows the VPN connection I have configured in Viscosity, it keeps on saying there is an update available. Hitting <enter> on that item just doesn't seem to be doing anything. Any idea on how to fix this?

Screen Shot 2017-06-06 at 13.53.21.png

Share this post


Link to post

Can't seem to reproduce this anymore. I had removed the settings.json file containing the version information and installed the latest version of the workflow downloaded from Github.

 

When I run into the issue again, I'll try to provide debug output!

Share this post


Link to post
[2017-12-26 00:44:29][ERROR: input.scriptfilter] Code 1: .
00:44:29 workflow.py:2055 DEBUG    ---------- VPN Manager (3.0.1) ----------
00:44:29 workflow.py:1462 DEBUG    reading settings from /Users/nickferguson/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred.vpn.manager/settings.json
00:44:29 workflow.py:2339 DEBUG    update check not due
00:44:29 vpn.py:523 DEBUG    args : {'--all': False,
 '--help': False,
 '<name>': None,
 '<query>': u'',
 'conf': True,
 'connect': False,
 'disconnect': False,
 'list': False}
00:44:29 workflow.py:1689 DEBUG    loading cached data: /Users/nickferguson/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.vpn.manager/__workflow_update_status.cpickle
00:44:29 workflow.py:2269 DEBUG    update_data: {u'available': False}
00:44:29 vpn.py:120 DEBUG    appinfo=AppInfo(name=u'Tunnelblick', path=u'/Applications/Tunnelblick.app', bundleid=u'net.tunnelblick.tunnelblick')
00:44:29 vpn.py:120 DEBUG    appinfo=None
00:44:29 workflow.py:2074 ERROR    'NoneType' object has no attribute 'path'
Traceback (most recent call last):
  File "/Users/nickferguson/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.5272EA93-6E91-458E-8E16-68480B7C094B/workflow/workflow.py", line 2067, in run
    func(self)
  File "./vpn.py", line 535, in main
    return do_config(args.get('<query>'))
  File "./vpn.py", line 343, in do_config
    icon=app.info.path,
AttributeError: 'NoneType' object has no attribute 'path'
00:44:29 workflow.py:2097 DEBUG    ---------- finished in 0.143s ----------

I'm trying to use with tunnelbrick ... I'm not knowledgeable enough to diagnose this. 

Share this post


Link to post

Never mind. I've had a look, and it's not included with the account I have (a low-end, but lifetime, account from some bundle).

 

I've had a look at the app (via the demo), and it does look like it would work.

 

I'll ask the developers if they'll give me a licence for free, so I can support it in the workflow.

 

Share this post


Link to post

Actually, you can forget it. Shimo's supposed AppleScript support is broken.

 

It throws an error if you try to get a list of its connections, so it won't work.

 

If you want Shimo to be supported by the workflow, you'll first have to get the developer(s) to fix the AppleScript support.

Share this post


Link to post

Hi, I wanted to test your workflow, but get the error message that Viscosity is not installed. It is actually installed, but I used `brew cask` to install it (the .app resides in /Applications though). Might that be the reason your workflow doesn't recognize it?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...