[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Private Internet Access (PIA) VPN region chooser in Emacs
From: |
TRS-80 |
Subject: |
Private Internet Access (PIA) VPN region chooser in Emacs |
Date: |
Thu, 04 Mar 2021 12:28:14 -0500 |
User-agent: |
Roundcube Webmail/1.3.15 |
Hello *,
Some months ago, I had written for myself a completing-read style VPN
location chooser, implementing PIA's most recent API.
They do publish some F/LOSS shell scripts[0] to do this, but they
automatically choose for you the "closest/fastest" region, instead of
allowing you to choose your exit point.
Of course, preferring not to leave Emacs anyway, I implemented in
Elisp a few functions which first fetch the list of exit points, and
extract the relevant bits using jq. Then a connect function will
present them to you in completing-read style so you can choose a
region, and then connect. Disconnecting and changing regions is also
supported. It's pretty basic, but it does what I need.
I have been using this for some months now without issue. Publishing
them publicly would involve a minimal amount of polish and writing a
README, which I could be bothered to do if there is enough interest.
Cheers,
TRS-80
[0] https://github.com/pia-foss/manual-connections
- Private Internet Access (PIA) VPN region chooser in Emacs,
TRS-80 <=