Giter Club home page Giter Club logo

govpn's Introduction

Google Authenticator VPN Starter

If you have a Google Authenticator protected VPN, this will help you start it by just hitting enter. Also, your credentials are encrypted with Secretbox.

So long as you don't back up the config file online, we still preserve the essence of 2 factor auth: you need something you know (your encryption password) and something physical you have (your laptop).

You need Go installed. To install govpn use the "go get" command:

go get -u github.com/davelondon/govpn

This will install the govpn command in your path. Then start it:

govpn

The first time it runs, it will prompt you for:

  • An encryption password - make sure this is strong!
  • The name of the VPN (you should set up a Mac native VPN, with a blank password).
  • Your VPN password.
  • Your Google Authenticator secret. You will probably need to request a new one from your security admin.

This data will be encrypted and stored in ~/.govpn-config.json.

Simply press enter to connect or re-connect to te VPN.

OSX Yosemite users

We use the OSX "scutil" command to start the VPN. This allows us to specify the password with a command line flag. This worked fine until Yosemite, when it stopped working. It now ignores the password and opens a password dialog. If this happens for you, use the -clip flag:

govpn -clip

... this will copy your password / auth code to the clipboard each time we attempt to start the VPN. Just paste into the password dialog and the VPN should start correctly.

govpn's People

Contributors

dave avatar

Watchers

 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.