No description
Find a file
Luke Souter b62b9e28b9
Some checks failed
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
Merge branch 'update-readme' of https://github.com/zerotier/ZeroTierOne into update-readme
2025-09-12 14:14:11 -07:00
.github add 'apt update' to validation action, as prior runs have started failing due to a stale package cache 2025-07-15 13:59:18 -07:00
artwork Added 90x90 AppIcon 2019-05-01 12:53:50 -07:00
attic/historic cleanup 2025-07-31 11:09:09 -04:00
ci new drone bits 2023-03-31 16:29:18 +02:00
debian License stuff, version bump, CLI output. 2025-08-21 11:01:52 -04:00
doc Fix minor spelling errors in docs 2024-03-22 20:43:46 -07:00
ext Advanced installer update. 2025-09-08 16:17:24 -04:00
include Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2025-08-12 12:34:54 -04:00
java Fix JNI after ZT_Node_New function signature change 2025-09-11 07:36:25 -07:00
node Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. 2025-08-25 13:38:57 -07:00
nonfree Merge branch 'dev' of github.com:/zerotier/ZeroTierOne into adam/1.16 2025-08-25 11:07:29 -07:00
osdep Merge pull request #2493 from jfly/add-warning-about-allowDNS-on-linux 2025-09-04 17:14:47 -04:00
pkg Merge branch 'dev' into ChrisCarini/addArchToSynologyDSM7 2024-06-01 03:22:38 -07:00
rule-compiler Rest -> MPL except controller. 2025-08-06 12:16:44 -04:00
rustybits bump rust versions per bot recommendation. 2025-09-04 17:16:23 -04:00
service Merge pull request #2489 from SwarmboticsAI/fix-link-select-cli 2025-09-04 17:15:23 -04:00
tcp-proxy Rest -> MPL except controller. 2025-08-06 12:16:44 -04:00
windows Enable controller on production Windows builds. 2025-09-08 12:36:57 -04:00
.clang-format clang-format this branch 2025-07-03 12:02:18 -04:00
.clangd Remove antique software updater code. It has not been used in many years, is not something we intend to use, and might in theory be an attack vector if someone found a problem with it. Better for it not to be there. 2025-08-08 13:21:38 -04:00
.dockerignore can now build centos8 docker container with Redis support 2020-05-12 15:17:57 -07:00
.gitattributes force eol=crlf for driver .inf files 2020-11-25 18:22:52 -08:00
.gitignore Merge github/dev 2025-08-05 11:03:59 -04:00
CMakeLists.txt Removed build flag in CMake script 2017-12-13 14:57:20 -08:00
cycle_controllers.sh add application_name to pgbouncer connectio string 2018-12-10 12:26:20 -08:00
Dockerfile.ci more RELEASE-NOTES 2021-09-15 08:12:25 +02:00
Dockerfile.release add make docker-release command & update dockerfile 2024-10-02 12:59:21 -07:00
entrypoint.sh.release Allow setting local.conf content from Docker environment variable 2025-03-26 11:23:46 -07:00
LICENSE-MPL.txt License files. 2025-08-21 10:39:25 -04:00
LICENSE.txt License files. 2025-08-21 10:39:25 -04:00
make-bsd.mk Add -Iext/opentelemetry-cpp-api-only/include for BSD 2025-08-25 14:16:56 -07:00
make-linux.mk Make nonfree the official build for Linux. 2025-09-05 17:49:10 -04:00
make-mac.mk messages for non-free builds 2025-09-05 15:39:47 -04:00
make-netbsd.mk Add -Iext/opentelemetry-cpp-api-only/include for BSD 2025-08-25 14:16:56 -07:00
Makefile Move controller/ into nonfree/controller and update references 2025-07-30 14:18:36 -04:00
objects-nonfree.mk Add conditional compilation of controller. 2025-08-21 09:55:08 -04:00
objects.mk Add conditional compilation of controller. 2025-08-21 09:55:08 -04:00
OFFICIAL-RELEASE-STEPS.md clean out some stuff 2024-09-14 08:21:08 -04:00
one.cpp messages for non-free builds 2025-09-05 15:39:47 -04:00
README.docker.md Allow setting local.conf content from Docker environment variable 2025-03-26 11:23:46 -07:00
README.md Update README.md 2025-09-12 14:14:06 -07:00
RELEASE-NOTES.md Add merged PRs. 2025-09-08 13:05:25 -04:00
SECURITY.md cleanup 2025-07-31 11:09:09 -04:00
selftest.cpp License stuff, version bump, CLI output. 2025-08-21 11:01:52 -04:00
update_controllers.sh update docker registry used 2019-02-08 10:40:57 -08:00
version.h License stuff, version bump, CLI output. 2025-08-21 11:01:52 -04:00
windows-clean.bat Revise Windows build to VS2022. 2022-06-06 19:33:35 -04:00
zerotier-cli-completion.bash Create a bash completion script. 2020-07-23 13:40:48 -07:00
zerotier-one.spec License stuff, version bump, CLI output. 2025-08-21 11:01:52 -04:00

ZeroTier - Global Area Networking

ZeroTier - Global Area Networking

ZeroTier is a smart programmable Ethernet switch for planet Earth. It allows all networked devices, VMs, containers, and applications to communicate as if they all reside in the same physical data center or cloud region.

This is accomplished by combining a cryptographically addressed and secure peer-to-peer network (termed VL1) with an Ethernet emulation layer somewhat similar to VXLAN (termed VL2). Our VL2 Ethernet virtualization layer includes advanced enterprise SDN features like fine grained access control rules for network micro-segmentation and security monitoring.

All ZeroTier traffic is encrypted end-to-end using secret keys that only you control. Most traffic flows peer-to-peer, though we offer free (but slow) relaying for users who cannot establish peer-to-peer connections.

Visit ZeroTiers site or ZeroTier's documentation for more information and pre-built binary packages. Apps for Android and iOS are available for free in the Google Play and Apple app stores.

Build and Platform Notes

To build on Mac and Linux just type make. On FreeBSD and OpenBSD gmake (GNU make) is required and can be installed from packages or ports. For Windows there is a Visual Studio solution in windows/.

  • Mac
    • Xcode command line tools for macOS 10.13 or newer are required.
    • Rust for x86_64 and ARM64 targets if SSO is enabled in the build.
  • Linux
    • The minimum compiler versions required are GCC/G++ 8.x or CLANG/CLANG++ 5.x.
    • Linux makefiles automatically detect and prefer clang/clang++ if present as it produces smaller and slightly faster binaries in most cases. You can override by supplying CC and CXX variables on the make command line.
    • Rust for x86_64 and ARM64 targets if SSO is enabled in the build.
  • Windows
    • Visual Studio 2022 on Windows 10 or newer.
    • Rust for x86_64 and ARM64 targets if SSO is enabled in the build.
  • FreeBSD
    • GNU make is required. Type gmake to build.
    • binutils is required. Type pkg install binutils to install.
    • Rust for x86_64 and ARM64 targets if SSO is enabled in the build.
  • OpenBSD
    • There is a limit of four network memberships on OpenBSD as there are only four tap devices (/dev/tap0 through /dev/tap3).
    • GNU make is required. Type gmake to build.
    • Rust for x86_64 and ARM64 targets if SSO is enabled in the build.

Typing make selftest will build a zerotier-selftest binary which unit tests various internals and reports on a few aspects of the build environment. It's a good idea to try this on novel platforms or architectures.

Running

Running zerotier-one with -h option will show help.

On Linux and BSD, if you built from source, you can start the service with:

sudo ./zerotier-one -d

On most distributions, macOS, and Windows, the installer will start the service and set it up to start on boot.

A home folder for your system will automatically be created.

The service is controlled via the JSON API, which by default is available at 127.0.0.1:9993. It also listens on 0.0.0.0:9993 which is only usable if allowManagementFrom is properly configured in local.conf. We include a zerotier-cli command line utility to make API calls for standard things like joining and leaving networks. The authtoken.secret file in the home folder contains the secret token for accessing this API. See service/README.md for API documentation.

Here's where home folders live (by default) on each OS:

  • Linux: /var/lib/zerotier-one
  • FreeBSD / OpenBSD: /var/db/zerotier-one
  • Mac: /Library/Application Support/ZeroTier/One
  • Windows: \ProgramData\ZeroTier\One (That's the default. The base 'shared app data' folder might be different if Windows is installed with a non-standard drive letter assignment or layout.)

License

ZeroTier is licensed under the BSL version 1.1. See LICENSE.txt and the ZeroTier pricing page for details. ZeroTier is free to use internally in businesses and academic institutions and for non-commercial purposes. Certain types of commercial use, such as building closed-source apps and devices based on ZeroTier or offering ZeroTier network controllers and network management as a SaaS service, require a commercial license.

A small amount of third-party code is also included in ZeroTier and is not subject to our BSL license. See AUTHORS.md for a list of third-party code, where it is included, and the licenses that apply to it. All of the third-party code in ZeroTier is liberally licensed (MIT, BSD, Apache, public domain, etc.).

Additional Resources