LinuxCommandLibrary

zerotier-one

ZeroTier virtual networking service daemon

TLDR

Start service in foreground

$ sudo zerotier-one
copy
Start with custom home directory
$ sudo zerotier-one [/var/lib/zerotier-one]
copy
Run in background (daemon mode)
$ sudo zerotier-one -d
copy

SYNOPSIS

zerotier-one [-d] [homedirectory_]

DESCRIPTION

zerotier-one is the ZeroTier network virtualization service daemon. It creates virtual network interfaces and manages encrypted peer-to-peer connections to form software-defined networks.
When running, the service:
- Maintains connections to ZeroTier root servers
- Establishes peer-to-peer tunnels with other nodes
- Creates virtual network interfaces (zt*) for joined networks
- Provides a local API for zerotier-cli
- Handles NAT traversal and connection optimization
The home directory contains identity files, network configurations, and the authentication token for the local API.
On systemd systems, zerotier-one is typically managed as a systemd service (zerotier-one.service) rather than run directly.

PARAMETERS

-d

Run as daemon in background
homedirectory_
ZeroTier home directory (default: /var/lib/zerotier-one)

CAVEATS

Requires root privileges to create network interfaces and bind to privileged ports.
The service binds to UDP port 9993 by default for peer communication.
Identity files in the home directory (identity.secret, identity.public) should be backed up. Losing them means generating a new identity with a different address.
Firewall rules must allow UDP traffic for peer connections. Blocked UDP can force traffic through relays, reducing performance.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community