PIA "Network Manager"-ish features for MacOS

For those people who use Mac's I wrote a shell script and a launchd plist file to use said script.  It is fresh off the line and thus may or may not work for everyone.  Still I've put it on github.  It should either connect or disconnect PIA within 5 minutes of a network change, right now only handles WiFi networks.

https://github.com/dwhagar/piaNetTest

Comments

  • I've kind of been toying with it all day, the PLIST file is annoying for launchd, but it works and the script itself is now zsh not bash.  I really hope this helps someone, I've tested it a number of different ways and seems to work pretty well.
  • edited July 2020
    Thank you so much for all the work and effort and thanks for sharing it with us !
  • So, I reworked this to do it with Python because it's easier to code in and could be more portable this way.  I have no doubt that this does not work on Windows but at least it should be easier to make work on Windows this way.  I also added a feature that automatically reconnects to PIA on an untrusted network that you've purposefully disconnected from PIA on after a set time.  The script default is 8 hours, but is easy to change.

    Other than that it works much the same way it did before, just in Python.  It is a separate repo since I didn't want to erase the shell script.

    As before a sample PLIST file is included for use with launchd but requires modification.

    https://github.com/dwhagar/piaNetworkTest
  • edited July 2020
    Thank you for sharing it. It is a huge problem to find a good vpn service on macos. Macos vpn so slow! more info for mac users about VPN services.
Sign In or Register to comment.