Code Monkey home page Code Monkey logo

vpn_util's Introduction

VPN Util

A lightweight utility to quickly manage your VPN connections

Setup

Some assembly required -- In it's current state, the vpn connection names in scripts/vpn.sh are labeled according to my own. You'll have to modify them to match the vpn connection names on your local machine. Change the values of personal and work inside the validateName() function to achieve this. This step is necessary in order to run the script properly on your local machine.

Once that script is configured you should be able to run it.

I recommend recompiling the script into the executable binary that will be installed to /usr/local/bin. If you don't already know about it, take a look at neurobin/shc, it's a fantastic tool that can be used to acheive this.

Once recompiled, store the binary in the vpn_util/bin directory, be sure to name it vpn.

Installation

After configuring the above, you can run scripts/setup.sh to install vpn.

  1. Clone this repo and cd into it.
  2. run scripts/setup.sh --install to install the binary to you /usr/local/bin
    • verify installation by running vpn --help
  3. run vpn list to see available vpn connections
  4. manage your VPN connections quickly from your terminal :)

Uninstall

If this tool isn't for you, you can use the setup.sh script to uninstall it.

  1. Run scripts/setup.sh --uninstall to remove the compiled binary from your /usr/local/bin directory.
    • if you did not compile the script, or if you named it something else, the uninstall will not complete successfully
    • If this is the case for you, you can simply remove it from you /usr/local/bin.

vpn_util's People

Contributors

richwrightnyc avatar

Stargazers

 avatar

Watchers

 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.