Created
February 26, 2023 07:46
-
-
Save adiesner/2b98ed7220e35b7a5b990d798257ac55 to your computer and use it in GitHub Desktop.
Private Internet Access / PIA - connect to random region via CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Connect to random PIA region | |
# | |
RANDOMREGION=$(piactl get regions | shuf -n 1) | |
piactl background enable | |
piactl set region $RANDOMREGION | |
piactl connect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment