Go to file
Ad van der Veer 50c118a5f7 Merge pull request #3 from microfactory/refactor_releasing
refactoring release logic
2016-02-14 15:05:43 +01:00
.editorconfig wrote readme 2015-12-25 09:33:28 +01:00
.gitignore split up build and run container 2016-02-14 15:01:33 +01:00
build.Dockerfile split up build and run container 2016-02-14 15:01:33 +01:00
LICENSE Initial commit 2015-12-25 08:59:07 +01:00
main.go added the ability to auto-detect the correct zerotier interface 2015-12-25 12:44:24 +01:00
make.sh use curl for github releases 2016-02-14 15:04:25 +01:00
README.md added the ability to auto-detect the correct zerotier interface 2015-12-25 12:44:24 +01:00
run.Dockerfile split up build and run container 2016-02-14 15:01:33 +01:00
VERSION refactoring release logic 2016-02-14 14:41:04 +01:00

zero

ZeroTier is an awesome zero-configuration vpn that runs almost anywhere. But the default CLI doesn't make particulary easy to join a network unattended. Manual intervention can be combersome in a cluster environment were machine are added and removed dynamically.

Zero presents the simple function of joining a Zerotier network without manual intervention. It does this by using the ZeroTier API:

usage: zero [-name] [-iface] [-install-dir] zt_net zt_token

The zt_net (network ID) and zt_token (API access token) can both be retrieved from the ZeroTier web interface. Typical usage looks like this:

zero -name=my-machine e6df831e1c561fff ZkJelfeQ1dd2ffff

Installation

A 64-bit Linux binary is available on the releases page, for other platforms use go get to build from source:

go get -u github.com/microfactory/zero

NOTE: This requires you to install the Go SDK (>1.5.1)

Configuration

Zero supports several options to customize its behaviour:

-iface 			The network interface that is expected receive an address
-name			Give this member a descriptive name upon authorizing
-installDir 	Where zerotier is installed
-api-endpoint	Location of the ZeroTier API

For example the following options allows us to run it on osx:

sudo zero -install-dir="/Library/Application Support/ZeroTier/One/" -name=macbook 7a9cd21e1ce5b740 EVekkAtG...yTHF2Mu