/setup-pia-port-forward

This script allows setting up port forwarding when using openvpn (and maybe other methods) to connect to Private Internet Access VPN provider

Primary LanguageShellThe UnlicenseUnlicense

Description:

  This script allows setting up port forwarding when using openvpn (and maybe other methods) to connect to Private Internet Access VPN provider

Usage:

  Interactive mode:

    $ ./bin/setup-pia-port-forward
    Enter your Private Internet Access username:
    p1234567
    Enter your Private Internet Access password:
    Forward port is: 51900
    $

  Scripted mode:

    $ FORWARD_PORT=$(./bin/setup-pia-port-forward $PIA_USERNAME $PIA_PASSWORD)
    $ echo $FORWARD_PORT
    51900
    $

Credits:

  I wrote this script thanks to Brent Nowak who provided all details on how the Private Internet Access API works in his blog post here: https://brentnowak.net/2014/10/22/port-forwarding-with-private-internet-access-vpn-service/