Starting / Stopping PIA VPN on Fedora via the command line (CLI) ...

edited December 2017 in Linux VPN Setup
Hello Friends:

I successfully installed PIA on my Fedora-26 computer using this installer:
https://github.com/shaynewang/piafedora

It integrates with NetworkManager, and works well in the XFCE U.I. (and GNOME, too).

But does anyone know what the CLI command is to start / stop the VPN, including specifying the server to connect to.

I'm pretty sure this is not a PIA-specific question (except specifying where to connect to), and more of a NetworkManager Fedora question, but I figured I'd ask here, too. =:)

Thank you in advance!

Comments

  • Hello:

    I answered my own question moments after I posted the above. I hope this will help others.

    Show connection status, both active and/or available to initiate:
    user$ nmcli connection show

    Connect to the server you want. You can use its string representation or UUID (both show up in the above command):
    user$ nmcli connection up 'PIA - Somewhere In The World' # Used string representation here.

    And finally, disconnect:
    user$ nmcli connection down 'UUID of Somewhere In the World' # Used UUID here.


    Depending on whether or not you saved your PIA password inside the files underneath:
    /etc/NetworkManager/system-connections/
    you may be prompted for a password.

  • Just as a side note, we also have a script that does the exact same thing on our website: https://www.privateinternetaccess.com/pages/client-support/fedora-openvpn
Sign In or Register to comment.