This is a bash script that makes a curl request to https://www.privateinternetaccess.com and displays whether or not you're currently connected to the VPN.
- Make sure your terminal can access the
curl
,grep
, andcut
commands. - Download the script
pia-check
. - Run
sudo chmod +x pia-check
to allow the script to be executed as a program. - Run
./pia-check
.
You are protected by PIA
You are not protected