[BUG] ZeroTier managed route IS received by daemon but NEVER applied to kernel on macOS 27

Author: zhouSir340Created Sep 20, 2026Updated Sep 20, 2026

[BUG] ZeroTier managed route IS received by daemon but NEVER applied to kernel on macOS 27 (works on 26)

Summary

The ZeroTier controller successfully pushes the managed route 172.31.0.0/16 to the local daemon on macOS 27 (26A428), and zerotier-cli reports the network as OK with portError: 0 — but the daemon never writes the route into the kernel routing table. The same network/node works correctly on another machine running macOS 26 (route appears automatically as 172.31 link#25 UCSc fethXY, no manual step needed).

This is not a case that should require a manual route. The daemon is expected to install controller-managed routes itself; here it silently does not. (As a side-observation, attempting a manual workaround also fails with Invalid argument, but that is secondary to the core failure.)

Environment

Item Value
OS (broken machine) macOS 27.0 (Build 26A428)
OS (working machine) macOS 26
ZeroTier client version 1.16.2 (latest) on both machines
ZeroTier network (nwid) private network (321a211b…16c6) — type PRIVATE, redacted
Driver / tunnel type TAP (MacEthernetTapAgent) — interface is a feth pair (e.g. fethXY), not utun* and not zt*
Local ZT IP 192.168.101.x/24 on a feth interface (host bits redacted)
Target to reach http://172.31.x.x:8080/ (redacted)
Managed routes advertised by network 172.31.0.0/16, 192.168.101.0/24, 192.168.102.0/24, 192.168.103.0/24

Steps to reproduce

  1. Join the (redacted) private ZeroTier network on macOS 27.
  2. Network config shows the managed route is received by the daemon:
$ zerotier-cli -j listnetworks
"id": "321a211b…16c6",   # redacted
"status": "OK",
"allowGlobal": true,
"allowDefault": true,
"allowManaged": true,
"portError": 0,
"routes": [ { "flags": 0, "metric": 0, "target": "172.31.0.0/16", "via": null } ]
  1. Verify the kernel routing table does not contain the route:
$ netstat -rn -f inet | grep -i 172.31     # empty
  1. Try to reach the target:
$ curl http://172.31.x.x:8080/   # target host bits redacted; timeout / unreachable

Expected behavior

  • On the working machine (macOS 26), the managed route is installed automatically by the daemon, with no manual steps:
172.31   link#25   UCSc   fethXY
  • On macOS 27, the daemon should have done exactly the same: install 172.31.0.0/16 (via: null, gatewayless interface route) into the kernel routing table on joining the network. No manual route should be needed.

Actual behavior

  • Daemon receives the managed route (via: null, flags: 0) and reports status: OK, portError: 0, but no route for 172.31.0.0/16 appears in netstat -rn.
  • Conclusion: the controller → daemon handoff succeeded, but the daemon → kernel write silently failed.

Secondary observation (workaround attempt also fails)

As an attempted workaround, adding the route manually is also rejected by the kernel:

$ sudo route -n add -net 172.31.0.0/16 -interface fethXY
route: writing to routing socket: Invalid argument
add net 172.31.0.0: gateway fethXY: Invalid argument

This is reported for completeness, but the root issue is that the daemon itself did not install the pushed route — the manual step should never have been necessary.

Additional observations

  • Both the broken (27) and the working (26) machine use the same network interface name for this network (a feth pair -> TAP), so this does not appear to be a utun vs TAP difference.
  • ifconfig on the feth interface shows: UP, RUNNING, inet 192.168.101.x/24, metric 5000, mtu 2800, with a paired peer feth interface (host bits redacted).
  • The hint Invalid argument on a gatewayless interface route suggests the kernel (macOS 27) is rejecting the managed/no-gateway route write that legacy macOS 26 accepted.

Possible cause / hypothesis

The daemon's route-installation path appears broken or rejected on macOS 27:

  • The controller → daemon push succeeds (route visible in zerotier-cli, status: OK, portError: 0).
  • But the daemon does not actually install the managed route into the kernel routing table, with no error surfaced through zerotier-cli.
  • The manual route install being rejected with Invalid argument on the same interface suggests the kernel/daemon write path for gatewayless interface routes on TAP/feth is failing on macOS 27 — a likely regression, since macOS 26 installs the identical route automatically.

This explains "route pushed by controller" yet "route absent from netstat" — and the install should have been automatic, with no manual step required.

Question / ask

  • Is macOS 27 officially supported for the current ZeroTier release (1.16.2)?
  • If not, what is the recommended workaround until support lands (e.g., use utun mode, an alternative driver, or specific route flags / -static?)?

Extra note

  • Confirmed on the latest client 1.16.2 on both machines — this is not a stale-version issue.
  • macOS 27 is not explicitly listed in the official OS compatibility matrix (only generic "macOS" for Tier 1).
  • History of similar macOS route bugs being fixed downstream (e.g. "Disappearing routes on Mac" — GitHub issue #600, and managed-route fixes on macOS) suggests this is a regression area on newer macOS releases.