Group data transports and add reverse TCP dialing and Shoes carriers
Let the elected opener invite its authenticated peer to dial back after a forward TCP attempt fails. Limit the reverse attempt, correlate failure replies with the active generation and cancel it on membership or policy changes. Only mutually enabled carriers with link-reverse v1 participate. Keep native TCP/TLS wire v2 and use the advertised TCP port with direct control-path or configured bootstrap IPs. Race candidate connects, bound handshakes, verify the Ed25519 SPKI and wake every link-close waiter. Add two separately versioned embedded Shoes profiles. VLESS runs over XHTTP stream-one with HTTP/2 and pinned TLS 1.3. Shadowsocks 2022 selects AES-128-GCM or AES-256-GCM per connection. Allocate a new credential and request path or salt for each attempt and admit it once through private mesh control. Both profiles terminate a local mesh service and retain the existing inner WireGuard tunnel. Attribute the adapted Shoes v0.3.8 wire code and keep its MIT license. Preferred ports are 9443 and 9444. Expose WireGuard, iroh, Native and Shoes as collapsible groups in the desktop and Android transport editor. A partial group's checkbox enables all its children. Keep the global protocol priority, save the concrete list per network and preserve explicitly saved choices including none. New networks enable all six carriers. Keep the existing CLI protocol names and unqualified port behavior. Advance local IPC to v30 for the catalog labels and groups. The existing network identity and encrypted data formats for the four original protocols stay compatible. Checked formatting, strict workspace Clippy and the full macOS workspace test suite (684 passed, 8 opted out by default). The initial sandbox denied loopback sockets. A full run also exposed an overly broad control dispatch check in the existing standalone AWG test; restoring the transport contract fixed it. Ran the opt-in upstream Shoes 0.3.8 reference test on loopback for HTTP/2 and both Shadowsocks methods. Checked Android arm64 and Windows GNU targets by cross-compilation. No live DPI or physical-device network measurements were performed.
This commit is contained in:
1 parent
68f19d1758
commit
16d7f82af5
42 files changed
+2695
-392
No files matched your search
@@ -127,11 +127,23 @@ status and recent traffic. Expand it to see who is using this device for interne
|
||||
access.
|
||||
[Details and per-OS notes](docs/exit-node.md).
|
||||
|
||||
The initial data transport order is `wg,awg,wg-quic,tcp-tls` by default. AWG negotiates a
|
||||
The initial data transport order is `wg,awg,wg-quic,tcp-tls,vless-xhttp,ss2022` by default. AWG negotiates a
|
||||
fresh masking profile and outer keys for each pair connection attempt, including
|
||||
reentry after fallback. Sustained data loss triggers switching independently of
|
||||
the iroh control connection. [Configuration and limits](docs/amnezia.md).
|
||||
|
||||
The **Shoes** family adds two embedded TCP carriers. `vless-xhttp` uses VLESS
|
||||
over XHTTP stream-one with HTTP/2 and pinned TLS 1.3 (preferred port 9443).
|
||||
`ss2022` uses Shadowsocks 2022 with AES-128-GCM or AES-256-GCM (9444).
|
||||
Peers agree fresh credentials over their authenticated control connection on
|
||||
every attempt. The agent runs both listeners itself. Override their ports with
|
||||
`tsng up -o vless-xhttp:port=10443 -o ss2022:port=10444`.
|
||||
|
||||
With two updated peers, `tcp-tls` and both Shoes carriers try the opposite dial
|
||||
direction if the first fails. One reachable TCP listener suffices. If neither
|
||||
side accepts TCP, the mesh can use another enabled carrier or an available
|
||||
relay route. [Wire profiles and compatibility](docs/shoes.md).
|
||||
|
||||
Change a network's protocol selection without editing its service or restarting:
|
||||
|
||||
```sh
|
||||
@@ -144,8 +156,10 @@ tsng protocols home none # control plane only
|
||||
Exact network names, full ids and unique id prefixes work here. The choice is
|
||||
local to this device, saved per network and applied immediately; an offline
|
||||
change applies on the next start. In the tray or on Android, click the network
|
||||
name to expand its card. Open **data transports** to enable transports and set
|
||||
their initial preference order. **Show devices** lists peers and their reported
|
||||
name to expand its card. Open **Data transports** to toggle a family or expand it to select individual
|
||||
transports. Checking a partial or unchecked family enables every member. The
|
||||
number beside an enabled transport is its priority across all groups. The arrow
|
||||
buttons change it. Hover or tap the information icon for protocol details. **Show devices** lists peers and their reported
|
||||
Tsunagi versions. On Android, tap a device to see its version and traffic.
|
||||
|
||||
Select a peer’s speedometer in **Devices** to measure download and upload
|
||||
|
||||
Reference in new issue
Block a user