selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

ZeroTier logo

Self-host ZeroTier

1.16.1

Encrypted P2P virtual networks for devices, sites and IoT

ReleaseOpen CoreOther
docker run --name myzerotier --rm --cap-add NET_ADMIN --device /dev/net/tun zerotier/zerotier:latest abcdefdeadbeef00
Updated4 months ago
LanguageC++
Setup difficultyModerate
MobileNative app
Stars
17 244
Port
9993 (ZeroTier's UDP data plane port and the local JSON/HTTP control API (127.0.0.1:9993 by default, 0.0.0.0:9993 when allowManagementFrom is configured))
Docker
zerotier/zerotier
ZeroTier screenshot 1ZeroTier screenshot 2ZeroTier screenshot 3ZeroTier screenshot 4ZeroTier screenshot 5

What is ZeroTier?

Should you self-host ZeroTier?

ZeroTier scores 73/100 on selfhost.directory (how scoring works) and ranks #7 of 56 in VPN. It has 17 244 GitHub stars, +84 in the last 30 days.

It shipped 2 stable releases in the past year. The latest, 1.16.1, came out on 28 May 2026.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Other-licensed and written mostly in C++.

Its closest alternative on selfhost.directory is Tailscale (84/100, 38 888 stars). It scores higher overall, so compare the two before you pick. See ZeroTier vs Tailscale side by side.

Features

  • Access control rules and micro-segmentation
  • Command-line management
  • End-to-end encryption
  • Layer 2 virtual networks
  • Local JSON/HTTP control API
  • Low-bandwidth mode
  • Peer-to-peer connections with relay fallbackRelaying is free but slow.
  • Private root servers (moons)Docs now discourage new private moon deployments.
  • Prometheus MetricsController-side metrics.
  • Runs on routers and embedded devices
  • Self-hosted network controllerNon-free, source-available code under nonfree/.
  • TCP fallback relay

ZeroTier README

How to install ZeroTier

Install ZeroTier with Docker

The zerotier/zerotier image requires the CAP_NET_ADMIN capability and the /dev/net/tun device must be forwarded to it.
Environment variables
ZEROTIER_API_SECRET, ZEROTIER_IDENTITY_PUBLIC, ZEROTIER_IDENTITY_SECRET
docker run --name myzerotier --rm --cap-add NET_ADMIN --device /dev/net/tun zerotier/zerotier:latest abcdefdeadbeef00

Network IDs are passed on the command line; mount a volume on /var/lib/zerotier-one to keep state.

How to configure ZeroTier

  • ZEROTIER_API_SECRETDocker image: replaces authtoken.secret before boot and lets you manage the control socket's authentication key.
  • ZEROTIER_IDENTITY_PUBLICDocker image: the identity.public file for zerotier-one, generated with zerotier-idtool.
  • ZEROTIER_IDENTITY_SECRETDocker image: the identity.secret file for zerotier-one, generated with zerotier-idtool.
  • local.confJSON file in the ZeroTier home folder holding per-node settings: trusted paths, blacklisted physical paths, peer path hints and trusted upstream devices (federated roots). It is only created if you make it.
  • primaryPort9993Override the default UDP port 9993 and any port given on the command line.

    values: 1-65535

ZeroTier releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in VPN

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…