Fix macOS exit sharing and bring exit selection onto the phone home screen
A Mac could install PF rules and advertise itself while IPv4 forwarding was still off. Check and enable forwarding when applying the offer and refresh the physical route when the uplink changes. Try the agent's existing privileges first. When an existing utun needs additional permission, the foreground tray or CLI can obtain an administrator grant scoped to the local UID and overlay subnet. Reconcile the current offer after the dialog so a withdrawal during authorization stays effective. A user agent denied a host utun can serve peers over bounded TCP, UDP and ICMP echo sockets bound to the physical interface. Keep host routes and ordinary local application traffic on the system-utun path. Preserve the saved choice for intentionally off-host setups and report readiness separately. Report exit selection directly to the selected peer over its authenticated session. Older peers appear for one minute following forwarded traffic. The optional announcement trailer remains compatible with control v8. Local IPC v29 carries the new status and authorization results. Keep the exit user count, left-aligned names and one-row scroll controls in a single fixed-height block alongside the network details. Show health and a small traffic trace on folded cards. Open desktop Devices at a usable width and keep the exit action clickable in its compact layout. Replace Android's per-card exit buttons with a fixed thumb-sized control. The chooser and Quick Settings share one list with a single local option, network groups, measured latency and an accessible confirmation sheet. Release the applications and packages as 1.0.9. On macOS, checked formatting, strict workspace Clippy and the workspace all-target test suite, including real encrypted agents and loopback TCP, UDP and ICMP. Ran the opt-in user-mode exit UDP round trip on a physical IPv4 interface. Verified the authorization scripts and syntax of their PF, sudoers and AppleScript components. The privileged two-utun kernel test is reserved for an isolated macOS runner. Rendered phone and desktop layouts in both themes, built the arm64 Android debug APK and cross- checked all workspace targets for Windows GNU.
This commit is contained in:
1 parent
d8b7787430
commit
43894612ee
65 files changed
+3110
-654
No files matched your search
+11
-5
@@ -17,9 +17,9 @@ existing `NetworkId`.
|
||||
Control version 8 adds signed, multi-writer VIP field snapshots to version 7's
|
||||
node retirements. The transition from control v7 to v8 requires updating all
|
||||
members together. Members already on v8 can adopt the optional software version
|
||||
field independently. Data ALPN is `tsunagi/data/6` for the single internal
|
||||
and exit-use fields independently. Data ALPN is `tsunagi/data/6` for the single internal
|
||||
WireGuard channel. Network ids, derivation labels, handshake encoding and
|
||||
existing record signatures are unchanged. Local CLI/tray IPC is version 25.
|
||||
existing record signatures are unchanged. Local CLI/tray IPC is version 29.
|
||||
Restart the agent with matching clients. SQLite schema 10 adds `vip_fields`, preserving identity,
|
||||
network configuration, signed node records and retirement proofs.
|
||||
See [virtual services](vip.md), [state sync](sync-model.md) and [AWG](amnezia.md).
|
||||
@@ -250,7 +250,7 @@ not affect other networks.
|
||||
|
||||
| message | meaning |
|
||||
|---|---|
|
||||
| `Announce { broadcast, exit_node, hostname, capabilities, agent_version? }` | this agent’s hostname, capabilities, broadcast and exit settings, and optional software release |
|
||||
| `Announce { broadcast, exit_node, hostname, capabilities, agent_version?, uses_your_exit? }` | this agent’s hostname, capabilities, broadcast and exit settings, and optional software release |
|
||||
| `Transport { protocol, payload }` | private, bounded per-peer transport negotiation; never state or a public message event |
|
||||
| `Ping { seq, payload }` | small request used to verify the exchange |
|
||||
| `Pong { seq, payload }` | the echoed reply |
|
||||
@@ -260,14 +260,20 @@ not affect other networks.
|
||||
| `Reachable { links }` | sender's current direct data links, by kind of transport |
|
||||
| `Bye { reason }` | graceful goodbye; not a revocation of anything |
|
||||
|
||||
The final field of an authenticated announcement is an optional Tsunagi software
|
||||
version. It is a display hint for the current session. Control v8 readers that
|
||||
The capabilities in an authenticated announcement may be followed by a Tsunagi
|
||||
software version. It is a display hint for the current session. Control v8 readers that
|
||||
predate the field stop decoding after the capabilities. Updated readers accept a
|
||||
frame ending there and show the version as unknown. A present label is limited
|
||||
to 64 ASCII letters, digits, dots, plus signs and hyphens. An invalid hint is
|
||||
ignored. Authentication, identity derivation and transport selection use their
|
||||
own wire versions independently of this label.
|
||||
|
||||
The next optional field, `uses_your_exit`, tells the recipient whether the sender
|
||||
selected it as the exit for this network. It is sent directly to the affected peer
|
||||
when the selection changes, including while idle. The hint only affects the
|
||||
display and expires with the authenticated session. For peers that omit it, an
|
||||
exit lists the peer for one minute after its last delivered forwarding packet.
|
||||
|
||||
`broadcast` is a per-network local opt-in, enabled by default and treated as
|
||||
false until an authenticated announcement arrives. It governs IP broadcast
|
||||
fanout and local admission; encrypted transit still uses the existing envelope.
|
||||
|
||||
Reference in new issue
Block a user