OSX control VPN via script?

Hi

I was hoping to create Alfred workflows to control my PIA connection.

Is there a script or binary installed as part of the PIA client that can be used to:

a) check the status of the PIA connection and
b) connect or disconnect from the PIA VPN

If there is a CLI tool that can do this then I can use this in an Alfred workflow.

Comments

  • There is nothing available for the PIA client but you can use an alternative client (Tunnelblick or Viscosity) which supports scripting.
  • edited February 2017
    One approach is to track the openvpn process that PIA spawns. Here's a Workflow for starting and stopping PIA thru Alfred: https://github.com/skonagaya/PIA-Interface A downside is that the code may brake when you upgrade PIA version in the future.
Sign In or Register to comment.