/pia

some PIA scripts

Primary LanguageShell

OpenVPN Split Tunnel User via PIA

PIA Split Tunnel User Script

This script is based off of GAS85's script made to achieve the same result. His script in turn is based on an HTPC Guides tutorial, which uses some scripts found in a post on Niftiest Software. I've provided links to all three here:

Differences in my Method

  • I set DNS servers permanently across the entire system. Rather than only have them kick in when the systemd service is running via update-resolv-conf.
  • I disable IPv6 entirely to stop IPv6 from leaking as this script only handles IPv4. This is because currently PIA themselves only support IPv4.

The following code block should run the split tunnel script without the need to download it. It will prompt you to manually enter your primary username and password, as well as your PIA credentials.

bash <(curl -sL git.io/JzsuC) && . ~/.bashrc

PIA Split Tunnel User Test Script

This should run a script for verifying the split tunnel is working correctly. If you only get green text (no red text). You're probably good to go.

bash <(curl -sL git.io/Jzsuu) && . ~/.bashrc