Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.15 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.15 KB

SystemD Service files for PIA VPN Connections

This repository contains systemd service files to create native openvpn connections to the vpn provider known as pia.

Known Issues:

  • 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

Requirements:

  • namespaced-openvpn
  • curl
  • jq

Installation:

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

Usage:

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