Skip to content

ZeroTier

proxies:
- name: zerotier
type: zerotier
network: "0123456789abcdef"
# state-dir: ./zerotier-node
# identity-secret: "0123456789:0:public-key:private-key"
# planet: ./planet
# mtu: 1400
# physical-mtu: 1432
# ip-stack:
# mode: auto
# congestion-controller: cubic
# primary-port: 0
# secondary-port: 0
# tcp-fallback-mode: auto
# tcp-fallback-relay: 204.80.128.1:443
# remote-trace-target: "0123456789"
# remote-trace-level: 0
# low-bandwidth: false
# encrypted-hello: false
# orbit:
# - world: "0123456789abcdef"
# seed: "0123456789"
udp: true
# remote-dns-resolve: true
# dns: [10.147.17.1]
# dialer-proxy: "ss1"
# interface-name: "WLAN"
# routing-mark: 6666
# ip-version: ipv4-prefer

Common Fields

ZeroTier network ID.

Optional. Persistent node state and default identity; defaults to an isolated directory derived from the network ID and outbound name.

Optional. Complete identity.secret contents; overrides the identity in state-dir and is not written there.

Optional. Path to a private Planet file, used to replace the built-in Earth Planet.

Optional. Local MTU override value; cannot exceed the MTU provided by the ZeroTier controller.

Optional. ZeroTier UDP payload MTU. Valid range: 510-10324, default: 1432.

Optional IP stack configuration.

Available values: auto, gvisor, mips. The default value is auto. auto always uses the mihomo IP stack (MIPS); gvisor requires compiling with -tags with_gvisor.

TCP congestion control algorithm. Available values: cubic, reno, bbr, bbr3. The default value is cubic.

This option has no effect when using the gVisor IP stack.

Optional. Primary UDP port; set to 0 to automatically select an available port.

Optional. Secondary UDP port; 0 for automatic selection, -1 to disable.

Optional. TCP fallback mode. Available values:

  • auto: Use relay after UDP connection failure.
  • force: Use relay only.
  • disable: Disable TCP relay fallback.

Default: auto.

Optional. TCP fallback relay server address.

Optional. ZeroTier node ID to receive global diagnostic traces.

Optional. Remote diagnostic trace level. Available values:

  • 0: Normal
  • 10: Verbose
  • 15: Rules
  • 20: Debug
  • 30: Insane

Optional. Enable low-bandwidth mode. Default: false.

Optional. Default: false.

Optional. Configure a list of private moon root servers.

Moon World ID, must be a 16-digit hexadecimal string.

Moon root node ID, must be a 10-digit number.

Whether to enable UDP. Default: true.

Optional. Whether to resolve destination domain names through ZeroTier using controller-provided DNS servers.

Optional. Override controller-provided DNS servers; one or more addresses can be specified.

Optional. Carry ZeroTier network traffic through another outbound proxy, where ss1 is the name of another proxy node.

Optional. Specify the network interface name used by ZeroTier.

Optional. Set the Linux routing mark.

Optional. Specify IP protocol version preference.