Skip to content

ravwojdyla/govpn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%