Skip to content

Instantly share code, notes, and snippets.

@adiesner
Created February 26, 2023 07:46
Show Gist options
  • Save adiesner/2b98ed7220e35b7a5b990d798257ac55 to your computer and use it in GitHub Desktop.
Save adiesner/2b98ed7220e35b7a5b990d798257ac55 to your computer and use it in GitHub Desktop.
Private Internet Access / PIA - connect to random region via CLI
#!/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