Repository navigation
What is new
A fifth security round, from an outside review of 0.8.0. Hosts and guests both need 0.9.0: the host's answer to a join now carries its clock.
None of these changes interrupts a connection that is up.
Joins and clocks
- A guest whose clock is off no longer gives up. The host's refusal (which only the host can send) carries the host's clock, and the guest joins again on it, so a wrong clock on either side costs one round trip. In the lab, guests 8 minutes slow and 8 minutes fast both joined.
- A join is fresh for 2 minutes either way (was 10). The replay memory keeps every fresh join for 5 minutes and holds more joins than the host's global join budget lets in over that time, so it never fills and never forgets a join early; an entry also stays while the wall clock still calls its join fresh, so a host clock that steps back does not reopen a replay. The low-water mark of 0.8.0 is gone: an invite holder could push it 10 minutes into the future with a long flood of joins dated ahead and lock every new guest out.
WebSocket transport
- The certificate's serial number now comes from the day's TLS subkey, so it changes every day with the key. Before, it was fixed per invite and linked a host across days.
What a guest can reach
- Networks the host reaches through another interface than its default route (a VPN or tailnet it is connected to, a second network) are refused to guests, unless the host allows the LAN. A host with several uplinks keeps all of them.
Full tunnel on Linux
- Without systemd-resolved, /etc/resolv.conf points at 1.1.1.1 and 8.8.8.8 (through the tunnel) during the session, keeping its search and options lines. The original is saved first in a root-only folder that survives a reboot, and put back when the session ends; after a crash or a power loss, the next session or
nat-tunnel recoverputs it back. The file is replaced in one step, and if a DHCP client rewrites it meanwhile, its version is kept.
Other
- The app says what a removed person can still do until every invite changes.
- The ProVerif model's notes now say which separation it assumes, and that it leaves out the prologue that binds the client nonce. The model itself is unchanged.
Install
| System | File | How |
|---|---|---|
| Ubuntu / Debian, Intel/AMD | strait_0.9.0_amd64.deb |
sudo apt install ./strait_0.9.0_amd64.deb, then open Strait from the menu |
| Ubuntu / Debian, ARM | strait_0.9.0_arm64.deb |
same, with this file |
| macOS, Apple silicon and Intel | strait-0.9.0-macos-universal.dmg |
drag to Applications, right-click and choose Open the first time |
| Windows 10/11 64-bit | strait-0.9.0-windows-x64.zip |
unzip, keep Strait.exe and wintun.dll together, double-click and accept the administrator prompt |
| Other Linux | strait-0.9.0-linux-x64.tar.gz, strait-0.9.0-linux-arm64.tar.gz |
./nat-tunnel gui |
Tested
AWS lab: Linux machines behind a regular NAT, a symmetric NAT and an address-dependent NAT in three regions, two public Linux hosts (arm64 and x86-64), and a Windows Server 2022 machine.
New in this round:
- Wrong clocks: a guest 8 minutes slow and one 8 minutes fast each joined after a single clock refusal and a second join on the host's clock.
- A VPN on the host: with a working route to 1.0.0.0/24 through another interface, a 0.8.0 host let a guest reach it; a 0.9.0 host refuses it on both the kernel and the userspace exit, while 1.1.1.1 stays reachable.
- Linux without systemd-resolved: during the session resolv.conf names 1.1.1.1 and 8.8.8.8 and keeps its search line, names resolve and traffic leaves from the host's address; the original comes back when the session ends, and after a crash (
kill -9)recoverputs it back.
Every 0.8.0 check, again:
- Invites (11 of 11): an invite without
hkor with a damaged one stops at once; another host's key cannot join; a personal-only host refuses the shared invite and admits a personal one; a withdrawn personal invite is refused after a host restart and the refused guest stops; another person's invite still works; a copy of a personal invite is refused while its owner holds a session for 5 minutes, and the owner's session stays up. - What a guest can reach (kernel and userspace exit): the internet with the host's address. Mail port 25, the host's public, tunnel and LAN addresses, the host's cloud DNS and other guests are refused.
- What a host can reach on a guest: nothing (ping, SSH, a TCP listener and a UDP listener all stay unreachable; the same listeners receive local traffic).
- Forward mode: a second guest is refused while the first guest's only connection sits idle for 75 s, which still works afterwards.
- A guest that starts before its host joins once the host is up.
- Linux full tunnel with systemd-resolved: traffic leaves from the host's address, DNS goes to 1.1.1.1 on the tunnel link, the default route is untouched and nothing is left behind.
- Key rotation: 290 s at 20 Mbit/s, 0% loss, no TCP retransmits. (The 18-minute game-like session of 0.8.0 was not repeated: the data path did not change.)
Connections:
- Host with a public address, guests behind three NAT types: 12 of 12 (UDP, Shadowsocks, WebSocket, obfuscated UDP), 0.5 to 1.1 s, 0% loss.
- Hosts behind NAT found through Nostr, MQTT and ntfy: 17 of 20. The three failures are WebSocket with a symmetric NAT on one side, the known limit below.
Windows:
- Windows guest from the release zip: 260 Mbit/s. In a full tunnel its traffic leaves from the host's address, and IPv6 is off during the session and back on after it.
- Linux guest through a Windows host: it leaves from the Windows address.
Packages and tests:
- Ubuntu packages (x86-64 and arm64): install, report 0.9.0 and open the window on a virtual screen.
- macOS disk image: verifies, both architectures report 0.9.0, and the app opens as the user with no administrator prompt.
- All 577 unit and integration tests pass on macOS, including new ones for the replay memory (filled to its cap it drops the newcomer, never an entry), a flood of joins dated ahead, the clock retry and the certificate serial across days. Three load-sensitive loopback tests fail now and then on two-CPU Linux runners, as they did in 0.7.0 and 0.8.0; they are being fixed separately.
- The ProVerif model is unchanged (only its notes changed).
Not tested / known limits
- The macOS password prompt for the privileged tunnel, the Linux
pkexecprompt, and the Windows window on a real desktop. These need a person at the screen. - The Android app was not compiled or run on a phone in this round.
- No kill switch: if Strait stops, traffic uses the normal connection again.
- WebSocket hole punching does not work through a symmetric NAT.
- The personal token is not forward secret, and neither is a guest's sealed rendezvous record: someone who records them and later steals the host key learns which token was used and where the guest connected from (not the traffic).
- Any invite holder, a removed one too until every invite changes, can use up the host's 5000 join handshakes per 10 s and hold back new joins while they keep it up (live sessions are untouched), or use up the per-host punch budget for an hour.
- A VPN that carries all of the host's traffic, and networks reached through another router on the host's own LAN, are not told apart from the internet. When the host's VPN carries everything but sends a few ranges around it (split exclusions), guests are refused those ranges.
- With systemd-resolved, names under the local network's own domains still go to the local resolver.
- The tunnel program is not code-signed: root checks that its copy matches what the window staged, not that it is genuine.
- No outside party has audited the design.