Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 542 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 542 Bytes

zerotier-hosts

Requirements

Installation

Just grab zerotier-hosts.sh, chmod +x it and go.

Usage

zerotier-hosts.sh --token API_TOKEN [--network NETWORK_NAME] [--suffix SUFFIX]

See zerotier-hosts.sh --help for more information.

OpenWRT setup

CronJob

Setup a cronjob to run this periodically:

# Update zerotier hosts file ever hour
0 * * * * /usr/bin/zerotier-hosts.sh --suffix wg --output /tmp/hosts.zerotier