Giter Site home page Giter Site logo

piavpn's Introduction

piavpn

Shell scripts for managing VPN connections of PIA (Private Internet Access) from the command line

Description

The main script is piavpn.sh. It can be used in both interactive and command line mode.

Prerequisites

Optional: figlet' which you can install from your repo (sudo apt-get install figlet`) and simply serves for a nicer output; still it is optional.

For the nmcli (network manager's command line interface) to be able to handle your PIA connections, you need to edit the corresponding PIA files under /etc/NetworkManager/system-connections/. For details on what to do to enable each region so it is managable with the piavpn.sh script, please read: https://askubuntu.com/questions/57339/connect-disconnect-from-vpn-from-the-command-line/57409#57409?newreg=21c40769970a48909e8fee3df7bb308f

Command line mode

Accepts the following command line arguments (only one at a time):

  • -l|--list lists the PIA regions activated for nmcli. For details on doing this, read this thread
  • -g|--geolocation prints where PIA thinks your IP is located
  • -s|--state prints your current PIA vpn endpoint
  • -u|--up <region name> start vpn connection to . Valid <region name>'s are those returned running the piavpn.sh with the -l and should be typed between quotes e.g. sudo ./piavpn.sh -u "PIA - Sweden"
  • -k|--kill terminates the currently active vpn connection (if one is active)

Interactive mode

Just run sudo ./piavpn.sh and you will get basic information about the currently active vpn connection and a small menu to terminate a vpn connection or to start a new one.

Other scripts

Independently you can use the other scripts to perform specific functions (script names are self explanatory).

piavpn's People

Contributors

tkalfigo avatar andinocl avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.