Jump to content

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
Link to post
  • 2 weeks later...
  • 2 months later...
  • 1 year later...
  • 2 months later...

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

Link to post
  • 2 weeks later...
  • 3 months later...
[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. 

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.

 

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.

Link to post
  • 2 weeks later...
  • 2 months later...

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?

Link to post
  • deanishe changed the title to VPN Connection Manager
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...