This repository contains systemd service files to create native openvpn connections to the vpn provider known as pia.
- this is not even pre-alpha, it's just a pile of code that "works on my machine" (sometimes)
- nothing is properly tested
- openvpn isn't being stopped?
- should really split server selection, openvpn and port forwarding into 3 separate units
namespaced-openvpn
curl
jq
Enter your credentials and the script path in the service file, link it to the correct location and enable it:
$ nano pia.service # enter your credentials
$ sudo ln -s [email protected] /etc/systemd/system/[email protected]
$ sudo ln -s pia.service /etc/systemd/system/pia.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable pia.service
Start the service:
$ sudo systemctl start pia.service
or without installation just run the script by yourself:
$ sudo PIA_USER="p1234567" PIA_PASS="abcdefghijkl" PIA_AUTOCONNECT="openvpn_udp_strong" PIA_DNS="true" PIA_PF="true" MAX_LATENCY=0.05 ./get_region_and_token.sh 2>/dev/null