Preserve mesh transport through an internet exit in 1.0.3-rc1

On macOS a connected socket using the physical source lost its route before
PF could see the packet. Fresh sockets could leave via the physical uplink,
but Darwin rejected reverse-NAT replies delivered to a utun address there.
With two live meshes remote control and data sessions expired within a minute.

Install matching interface-scoped uplink routes before capturing the two
unscoped defaults. Keep PF state on the physical interface, preserve transport
ports and return tagged replies via loopback. Reconcile uplink changes and
recover only owned routes using a private journal and kernel markers. On
Windows keep existing LAN routes, retain recent verified reconnect paths and
refresh the gateway and relay DNS without replacing the split defaults.

Exercise two memberships of the same peer, new and established native
transport sockets, ordinary application traffic and scoped route cleanup.
Run hosted macOS and Windows native regressions on affected changes. Bump the
packages to 1.0.3-rc1 and encode Debian prereleases with a tilde so apt can
upgrade to the final release. Mesh wire formats and identities are unchanged.

Checked workspace formatting, strict Clippy and the full workspace suite on
macOS (586 passed, four opt-in tests skipped by default). The privileged macOS
kernel test passed separately. A launchd trial of the RC kept master and ch
reachable over both meshes and used the external exit past the original
timeout. Disabling the exit restored the physical IP and cleared the routes.
Linux ARM64 passed four real-agent exit tests and the privileged netns
regression. The RC APK passed the dual-subnet UDP/ICMP test on an Android 37
ARM64 emulator. Verified Debian and pacman version ordering. Native Windows
execution is covered by the hosted workflow and was not run on this Mac.
This commit is contained in:
Aleksandr Bogomiakov committed 2026-11-25 03:47:49 +02:00
1 parent 32aa73721a
commit a189d0ad3e
28 files changed
+1698 -185

No files matched your search

+6
View File
@@ -41,6 +41,12 @@ The cask starts the service for you. The agent runs as root, and its control
socket is open to the `admin` group, so the CLI and the tray work without
`sudo` for an administrator.
After upgrading the CLI, run `sudo brew services restart tsunagi` to load the
new binary into the system daemon. Running `brew services start tsunagi` in
a user shell creates a separate launch agent. If that happened, remove the
user service with `brew services stop tsunagi`, then check the system daemon
with `sudo brew services info tsunagi`.
### Publishing Homebrew packages
After a stable `vMAJOR.MINOR.PATCH` GitHub release uploads its assets, the