Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trawor/zerotier
Join zerotier network auto
https://github.com/trawor/zerotier
zerotier zerotier-one
Last synced: 3 months ago
JSON representation
Join zerotier network auto
- Host: GitHub
- URL: https://github.com/trawor/zerotier
- Owner: trawor
- License: mit
- Created: 2019-04-17T05:30:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T07:14:47.000Z (over 5 years ago)
- Last Synced: 2024-05-31T09:38:09.656Z (5 months ago)
- Topics: zerotier, zerotier-one
- Language: Shell
- Size: 6.84 KB
- Stars: 31
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - trawor/zerotier - Join zerotier network auto (Shell)
README
# zerotier
Join zerotier network auto with Docker, I like ZT so much!This is a very tiny(3 MB) docker image to join zerotier without auth on web.
So, with this, you can scale up your docker and even any machine cluster programmly.Find detail here: https://hub.docker.com/r/trawor/zerotier
## Process
1. Alpine install zerotier
2. run ZT service
3. if `NW_ID` env is set, join it
4. if `NW_TOKEN` env is set, auth this peer with ZT api
5. if `IFTTT` env is set, send it a message with peer id and assigned IP## Usage, simple
- Run as a ZT client only
`docker run -d --device=/dev/net/tun --net=host --cap-add=NET_ADMIN --cap-add=SYS_ADMIN
-v /var/lib/zerotier-one:/var/lib/zerotier-one trawor/zerotier`ps: if you don't like to buzz the docker host, remove `--net=host`
pps: mount `/var/lib/zerotier-one` to keep the data or you will have always a new join- Run with ENV (with -e param)
1. `NW_ID` : the network id you created, listed https://my.zerotier.com/network
2. `NW_TOKEN` : 'API Access Tokens' in https://my.zerotier.com
3. `IFTTT` : IFTTT trigger URL, looks like: `https://maker.ifttt.com/trigger/xxxxxxxxxx/with/key/ST-xxxxxxxxxxxxx`