Repository navigation
Releases
Strait 0.9.0
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.
Strait 0.8.0
What is new
A fourth security round: three independent reviews of 0.7.0 and an outside review. Hosts and guests both need 0.8.0: the join handshake and the WebSocket certificate changed.
None of these changes interrupts a connection that is up. Join renewal runs only before a guest has joined, key rotation is seamless, and a new daily certificate affects only new connections.
Joins
- The handshake binds its first message to the client nonce, so a join cannot be moved under another nonce.
- The replay memory keeps every fresh join for its whole lifetime. If it ever fills, it refuses older joins instead of forgetting them. A guest's own retry is still answered.
- A guest renews its join every 30 s while it waits, so a join it sent before the host started never goes stale.
- Join limits: 20 per 10 s per address (IPv6 per /48), 80 per wider network (IPv4 /24, IPv6 /32), and 5000 per 10 s in total. A refused join no longer counts against its sender, so guests behind one address cannot lock each other out.
- A host checks admission again every few seconds. A session ends when its personal invite is withdrawn or expires, or when the host switches to personal invites only.
Forward mode and roaming
- A new join replaces a live forward-mode session only once its first packet arrives, and only the current guest's address gets a retried answer.
- A roaming guest's new address is confirmed before the session moves to it.
Host as a scanner
- The punch budget (64 new addresses an hour, never a port below 1024) now also covers addresses that come from a signal server, and a host ignores signal-server redirects once a guest has joined.
What a guest can reach
- The host's own LAN subnets (/16 or narrower, on any interface) are refused to guests unless the host allows the LAN.
Full tunnel
- Linux: DNS goes through the tunnel (resolvectl on the tunnel link), and IPv6 is blocked during the session.
- Linux: the system's default route is no longer replaced. Two /1 routes through the tunnel take over and leave with it, so the original route (with its DHCP source and metric) is exactly as before. Before, a plain copy of it was put back next to the original.
- Linux: the restore state lives in a root-only folder.
- macOS and Windows: the restore state is saved before DNS and IPv6 are changed, so a crash in between can always be undone. macOS recovery also restores the default route.
--tun-bypasstakes only IPv4 addresses and networks.
Android
- The app's own connections leave outside the VPN, and every public address goes through the tunnel (before, the /8 of the host's address was left out).
WebSocket transport
- The TLS certificate uses a new subkey every day, so it cannot link a host across days. A guest accepts yesterday's, today's and tomorrow's.
- Pending TLS handshakes are capped per /24 (IPv4) and /64 (IPv6).
Other
- Xray no longer picks a local address as its default REALITY target.
- The privileged helper creates its folder and log files with fixed owners and modes.
- The ProVerif model adds an oracle for the host's guest-record decryption, and every property still holds.
Install
| System | File | How |
|---|---|---|
| Ubuntu / Debian, Intel/AMD | strait_0.8.0_amd64.deb |
sudo apt install ./strait_0.8.0_amd64.deb, then open Strait from the menu |
| Ubuntu / Debian, ARM | strait_0.8.0_arm64.deb |
same, with this file |
| macOS, Apple silicon and Intel | strait-0.8.0-macos-universal.dmg |
drag to Applications, right-click and choose Open the first time |
| Windows 10/11 64-bit | strait-0.8.0-windows-x64.zip |
unzip, keep Strait.exe and wintun.dll together, double-click and accept the administrator prompt |
| Other Linux | strait-0.8.0-linux-x64.tar.gz, strait-0.8.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.
Security, against a live host:
- Invites (11 of 11 checks):
- an invite without
hkand one with a damagedhkstop 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 instead of retrying;
- another person's invite still works;
- a copy of a personal invite is refused while its owner is connected, and the owner's session stays up. A second run held the owner's session for 5 minutes: the host refused the copy as in use, and only the owner joined.
- an invite without
- 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 on the guest all stay unreachable, while the same listeners receive local traffic (control).
- Forward mode: a second guest is refused while the first guest's only connection sits idle for 75 s, and that connection still works afterwards.
- A guest that starts before its host joins once the host is up, with no stale-join refusal.
- Linux full tunnel: traffic leaves from the host's address, DNS goes to 1.1.1.1 on the tunnel link for every name, the system's default route stays as it was during and after the session, and no IPv6 reject routes are left.
Sessions are not interrupted:
- Key rotation: 290 s at 20 Mbit/s, 0% loss, no TCP retransmits.
- A game-like session: 64 small UDP packets a second for 18 minutes, across 9 key rotations, while another guest joined and left: 0 of 69,120 packets lost, the longest pause 46 ms (packets are 16 ms apart), round trip 92 to 94 ms between Frankfurt and Virginia.
Connections:
- Host with a public address, guests behind three NAT types: 12 of 12 connections (UDP, Shadowsocks, WebSocket, obfuscated UDP), 0.5 to 1.1 s, 0% loss.
- Hosts behind NAT with no address in the invite, 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. A symmetric-NAT host takes 10 to 49 s.
- Traffic-shape filter on the guest's router: same results as 0.7.0. Level 3 lets UDP, Shadowsocks and obfuscated UDP through (57 to 118 Mbit/s); level 4 blocks all four tested transports.
Windows:
- Windows guest from the release zip: 264 Mbit/s. In a full tunnel its traffic leaves from the host's address, and IPv6 is off on the network adapter 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.8.0 and open the window on a virtual screen.
- macOS disk image: verifies, both architectures run, and the app opens as the user with no administrator prompt.
- About 600 unit and integration tests pass on macOS. On Linux runners with two CPUs, three load-sensitive loopback tests (256 guests behind one address, one NAT-matrix case, one port-scan case) fail now and then; 0.7.0 fails them the same way, and they are being fixed separately.
- ProVerif proves every property in the model.
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 changes were reviewed but not compiled or run on a phone.
- 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).
- The punch budget is per host, not per person: one invite holder can use it up for an hour.
- Holders of the shared invite on two networks can fill a host; a host that takes personal invites only gives each person one slot.
- 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.
Strait 0.7.0
What is new
A third security round, from an outside review of 0.6.0 and an independent second review of the whole codebase. Hosts and guests both need 0.7.0: records, the WebSocket certificate and the DHT keys changed.
One key, one use
- The host key itself signs nothing any more. Rendezvous records, the WebSocket transport's TLS handshake and the host's DHT items are signed with subkeys made for each invite (key blinding, as Tor onion services do). A guest derives them from
hkand the invite. - Knowing
hkalone no longer links a host's records or certificates: not for someone removed with Change every invite, and not for a prober that saw the WebSocket certificate. - The outer tag has its own key instead of reusing the handshake's pre-shared key.
Joins
- The replay memory is keyed on the handshake's one-time key, so re-wrapping a recorded join under a fresh nonce no longer makes it new.
- A host refuses joins made before it started (60 s of slack), so a recording from before a restart is stale too.
- Many senders can no longer lock everyone out: the join limiter forgets old networks instead of refusing all. IPv6 counts per /48. Each personal invite also has its own budget.
- A guest the host refused stops trying, instead of retrying every second.
- Forward mode: another address (IP and port) cannot take a live session over, and a retried answer goes only to the guest's own address.
Privacy
- A guest's rendezvous record (its public address) is sealed to the host's key. Other invite holders can no longer read where other guests connect from.
- Only the host can publish its DHT record, so invite holders cannot overwrite it.
- The full tunnel's log files are readable by the user only (they were readable by everyone on the computer).
The guest's inbound rule
- Only replies get in: TCP that answers the guest, UDP from an address and port the guest sent to, and ICMP echo replies and errors. Every other protocol and every fragment is dropped, so the host can no longer even ping the guest.
Host as a scanner
- The host punches at most 64 new guest addresses an hour, never a port below 1024, over UDP and over TCP for the WebSocket transport.
Removal
- After you remove someone, "Personal invites only" stays on until you change every invite, even after their personal invite expires: it holds the shared invite key.
Other
- Linux full tunnel: IPv6 reject routes for both halves of the address space, as on macOS.
- The host key is passed only to the WebSocket transport, and is never printed in logs or debug output.
- The ProVerif model now also covers host-to-guest traffic, forward secrecy after the host key leaks, and a host-side session property. It also lists its abstractions, and confirms the known limit that the personal token is not forward secret.
Install
| System | File | How |
|---|---|---|
| Ubuntu / Debian, Intel/AMD | strait_0.7.0_amd64.deb |
sudo apt install ./strait_0.7.0_amd64.deb, then open Strait from the menu |
| Ubuntu / Debian, ARM | strait_0.7.0_arm64.deb |
same, with this file |
| macOS, Apple silicon and Intel | strait-0.7.0-macos-universal.dmg |
drag to Applications, right-click and choose Open the first time |
| Windows 10/11 64-bit | strait-0.7.0-windows-x64.zip |
unzip, keep Strait.exe and wintun.dll together, double-click and accept the administrator prompt |
| Other Linux | strait-0.7.0-linux-x64.tar.gz, strait-0.7.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.
Security, against a live host:
- Invites (11 of 11 checks):
- an invite without
hkand one with a damagedhkstop 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 instead of retrying;
- another person's invite still works;
- a copy of a personal invite is refused while its owner is connected, and the owner's session stays up.
- an invite without
- 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 on the guest all stay unreachable, while the same listeners receive local traffic (control).
- Forward mode: a second guest is refused while the first guest's only connection sits idle for 75 s, and that connection still works afterwards.
- Key rotation: 290 s at 20 Mbit/s, 0% loss.
Connections:
- Host with a public address, guests behind three NAT types: 12 of 12 connections (UDP, Shadowsocks, WebSocket with the new TLS subkey, obfuscated UDP), 0.5 to 1.1 s, 0% loss.
- Hosts behind NAT with no address in the invite, found through Nostr, MQTT and ntfy, with guest records now sealed to the host: 17 of 20. The three failures are WebSocket with a symmetric NAT on one side, the known limit below. A symmetric-NAT host takes 30 to 57 s.
- Traffic-shape filter on the guest's router: same results as 0.6.0. Level 3 lets UDP, Shadowsocks and obfuscated UDP through (44 to 82 Mbit/s); level 4 blocks all four tested transports.
Windows:
- Windows guest from the release zip: 282 Mbit/s. In a full tunnel its traffic leaves from the host's address, and IPv6 is off on the network adapter 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.7.0 and open the window on a virtual screen.
- macOS disk image: verifies, both architectures run, and the app opens as the user with no administrator prompt.
- 596 unit and integration tests pass. ProVerif proves every property in the model, and the blinded record signature was checked against an independent Python implementation of RFC 8032.
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 changes were compiled but not run on a phone.
- 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: someone who records a join and later steals the host key learns which token was used (not the traffic).
- Holders of the shared invite on two networks can fill a host; a host that takes personal invites only gives each person one slot.
- 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.
Strait 0.6.0
What is new
A second security round. It closes the items that 0.5.0 left open or only partly fixed. Hosts and guests both need 0.6.0: personal invites made with 0.5.0 stop working, and the command line no longer takes an invite as an argument.
Privileges
- On macOS and Linux the window runs as your user. Sharing needs no password at all; a guest's full tunnel asks for it once per connection, and only the tunnel runs as root.
- The root process writes its log only into a folder it creates itself (
/var/run/strait/<uid>), never into your folders, and gets only the rendezvous and carrier choices from the window, never a path to another program.
Personal invites
- Change every invite (People, while sharing) stops sharing and starts again with a new invite. Every old invite stops working, personal ones too, so a removed person no longer has any key at all.
- A personal invite works on one device at a time: a copy is refused while its owner is connected.
Other fixes
- A guest accepts only replies from the host: a host can no longer open connections to services on the guest's computer (file sharing, SSH, a development server). Ping still works.
- Forward mode: an idle guest sends a keepalive every 10 s, so a quiet connection keeps its session and another guest cannot take it over.
- The WebSocket transport's TLS is tied to the host key in the invite: holding the invite is not enough to pose as the host there either.
- The command line refuses an invite or key given as an argument, where every user of the computer can read it. Use
STRAIT_INVITE, or--invite -to read it from standard input. - A guest scans one address at most 3 times an hour (the port scan a symmetric NAT needs).
- Windows switches IPv6 off on every adapter during a full tunnel, not only the main one. macOS adds IPv6 reject routes that router advertisements cannot replace.
- Android: the tunnel core checks that the app handing over the VPN interface is its own, under a fresh random name each session.
- The mobile app no longer offers trackers, like the desktop app.
Formal model
- A ProVerif model of the join (docs/proverif) proves that the guest's token and traffic stay secret against an attacker who holds the invite, and that a guest that finishes a join talked to the holder of the host key.
Repository
- docs/SECURITY_MEASURES.md: every security measure, the attack surface, and what each side (host, guest, everyone else) can and cannot do.
SECURITY.md(private reporting is on),CONTRIBUTING.md, issue templates, CI, screenshots and a comparison with other tools in the README.
Design and limits: docs/HANDSHAKE.md.
Install
| System | File | How |
|---|---|---|
| Ubuntu / Debian, Intel/AMD | strait_0.6.0_amd64.deb |
sudo apt install ./strait_0.6.0_amd64.deb, then open Strait from the menu |
| Ubuntu / Debian, ARM | strait_0.6.0_arm64.deb |
same, with this file |
| macOS, Apple silicon and Intel | strait-0.6.0-macos-universal.dmg |
drag to Applications, right-click and choose Open the first time |
| Windows 10/11 64-bit | strait-0.6.0-windows-x64.zip |
unzip, keep Strait.exe and wintun.dll together, double-click and accept the administrator prompt |
| Other Linux | strait-0.6.0-linux-x64.tar.gz, strait-0.6.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.
Security, against a live host:
- Invites (10 of 10 checks):
- an invite without
hkand one with a damagedhkstop at once with a clear message; - 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, while another person's still works;
- a copy of a personal invite is refused while its owner is connected, and the owner's session stays up.
- an invite without
- 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; ping to the host works.
- What a host can reach on a guest: with 0.5.0 a test web server and SSH on the guest were reachable through the tunnel; with 0.6.0 both are refused, and ping still works.
- Forward mode: a second guest was refused 24 times while the first guest's only connection sat idle for 75 s, and that connection still worked afterwards.
Connections:
- Host with a public address, guests behind three NAT types: 12 of 12 connections (UDP, Shadowsocks, WebSocket, obfuscated UDP), 0.5 to 1.1 s, 0% loss.
- Hosts behind NAT with no address in the invite, 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. A symmetric-NAT host takes 26 to 59 s.
- Key rotation: 290 s at 20 Mbit/s, 0% loss.
- Traffic-shape filter on the guest's router: same results as 0.5.0. Level 3 lets UDP, Shadowsocks and obfuscated UDP through (46 to 80 Mbit/s); level 4 blocks all four tested transports.
Windows:
- Windows guest from the release zip: 275 Mbit/s. In a full tunnel its traffic leaves from the host's address, IPv6 is off on the network adapter 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.6.0 and open the window on a virtual screen.
- macOS disk image: signature verifies, both architectures run, and the app opens as the user with no administrator prompt.
- 591 unit and integration tests pass; ProVerif proves every property in the model.
Not tested / known limits
- The macOS password prompt for the new privileged tunnel, the Linux
pkexecprompt, and the Windows window on a real desktop. These need a person at the screen. - The Android changes were compiled but not run on a phone, and the mobile test suite was not run.
- No kill switch: if Strait stops, traffic uses the normal connection again.
- WebSocket hole punching does not work through a symmetric NAT.
- A malicious host can point its guests' port scan at an address of its choice, within the limits above.
- A copy of a personal invite works while its owner is offline.
- No outside party has audited the design.
- The apps are not notarized or code-signed, so macOS and Windows show a warning on first open.
- No Android or iOS build in Releases yet.
Strait 0.5.0
What is new
This release is about security. It answers an outside review of the handshake and two internal reviews of the whole codebase. Invites from earlier versions no longer work: hosts and guests both need 0.5.0.
Who you are talking to
- Every host has its own long-term key, and every invite names it (
hk=). A guest refuses an invite without one, so holding an invite is no longer enough to pose as the host. - Guests join through a Noise
NKpsk0handshake. Each session has fresh keys, and both sides replace them every two minutes. - The host signs its rendezvous records. Guests ignore unsigned addresses for scanning, and the host only fires at sealed guest records.
People
- Personal invites: one per person. You see who is connected and can remove one person without stopping the others.
- A removal is remembered after the app restarts. While a removed person's invite is still valid, the shared invite stays closed.
What a guest can reach
- Only the public internet over IPv4. Not the host itself (its own addresses, its tunnel address, its router's public side), not its LAN, not other guests, not cloud metadata and platform addresses, and not mail port 25.
- A guest also drops anything the host sends that is not addressed to it.
Hardening
- Limits on new joins per network.
- Replayed or stale handshakes cost the host one key exchange at most.
- Forward mode (one guest, TCP bridge) no longer lets a second invite holder take over a live session, and it applies the personal-invite rules.
- The host's public address must be confirmed by two STUN servers.
- Rendezvous names, including the signal-server room, change every day.
- Line and size caps on the ntfy client, and caps on WebSocket connections.
- Root and administrator processes no longer write into the user's home folder or follow links there.
- Root and administrator processes run system tools by absolute path.
- The macOS helper is installed under
/Library/PrivilegedHelperTools/strait, after an ownership check. - On Windows, crash-recovery state lives in the admin-only
Program Files\Straitfolder. - Linux can now undo a crashed full tunnel with
recover.
Renamed
- The
--relayoption is now--signal. It only names the optional server that introduces two devices; Strait never relays traffic.
Honest labels
- The settings that used to say "Kill switch" and "Block IPv6" now describe what they actually do.
Design and limits: docs/HANDSHAKE.md.
Install
| System | File | How |
|---|---|---|
| Ubuntu / Debian, Intel/AMD | strait_0.5.0_amd64.deb |
sudo apt install ./strait_0.5.0_amd64.deb, then open Strait from the menu |
| Ubuntu / Debian, ARM | strait_0.5.0_arm64.deb |
same, with this file |
| macOS, Apple silicon and Intel | strait-0.5.0-macos-universal.dmg |
drag to Applications, right-click and choose Open the first time, then enter your password |
| Windows 10/11 64-bit | strait-0.5.0-windows-x64.zip |
unzip, keep Strait.exe and wintun.dll together, double-click and accept the administrator prompt |
| Other Linux | strait-0.5.0-linux-x64.tar.gz, strait-0.5.0-linux-arm64.tar.gz |
sudo ./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.
Security, against a live host:
- A guest reaches the internet with the host's address (both the kernel and the userspace exit). It cannot open connections to:
- mail port 25 (port 587 works);
- the host's public address, tunnel address or LAN address;
- the host's cloud DNS;
- another guest. It can ping the host's tunnel address, but not another guest.
- Invites:
- an invite without
hkand one with a damagedhkstop at once with a clear message; - 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, while another person's still works.
- an invite without
- Forward mode: a second guest is refused as "full" while the first guest's connection is open, and gets in once it closes.
Connections:
- Host with a public address, guests behind three NAT types: 12 of 12 connections (UDP, Shadowsocks, WebSocket, AmneziaWG), 0.5 to 1.1 s, 0% loss.
- Hosts behind NAT with no address in the invite, found through Nostr, MQTT and ntfy: 18 of 20.
- The two failures are WebSocket from or to a symmetric NAT, which the previous release could not do either.
- A symmetric-NAT host takes 29 to 56 s (port scanning), within the earlier range.
- Key rotation: 290 s at 20 Mbit/s, with 1450 of 1450 pings answered and no TCP retransmits.
- Traffic-shape filter on the guest's router: same results as 0.4.x. Level 3 lets UDP, Shadowsocks and AmneziaWG through (55 to 100 Mbit/s); level 4 blocks all four tested transports.
Windows:
- Windows guest to a Linux host from the release zip: 254 Mbit/s.
- Linux guest through a Windows host: it leaves from the Windows address.
Packages:
- Ubuntu packages (x86-64 and arm64): install, report 0.5.0 and open the window on a virtual screen.
- macOS disk image: signature verifies; both architectures run.
- Unit and integration tests: all pass.
Not tested / known limits
- The macOS administrator prompt with the new helper folder, and the Windows window on a real desktop. These need a person at the screen.
- Linux crash recovery (
recover) and the IPv6 route change on Linux were not exercised on a real crash. - A host's signed record stays valid for its day, so it can be replayed within that day.
- A malicious host can point its guests' port scan at an address of its choosing for a few minutes.
- WebSocket hole punching does not work through a symmetric NAT.
- No outside party has audited the design.
- The apps are not notarized or code-signed, so macOS and Windows show a warning on first open.
Strait 0.4.1
What is new
- WebSocket without a reachable port. When the host has no reachable TCP port, both sides now open the TCP connection to each other through their routers, the same way the UDP tunnel is hole-punched. No port forward is needed.
- Automatic port mapping for TCP. The host asks the router (UPnP, NAT-PMP, PCP) to open the port of the WebSocket and Xray transports.
- macOS: the app asks for the administrator password when you open it. Running it from Terminal with
sudois no longer needed. - Windows: no console window opens next to the app. Command-line output still prints when you run it from a terminal.
- The Shadowsocks, obfuscated UDP and WebSocket transports are built in by default.
Install
| System | File | How |
|---|---|---|
| Ubuntu / Debian, Intel/AMD | strait_0.4.1_amd64.deb |
sudo apt install ./strait_0.4.1_amd64.deb, then open Strait from the menu |
| Ubuntu / Debian, ARM | strait_0.4.1_arm64.deb |
same, with this file |
| macOS, Apple silicon and Intel | strait-0.4.1-macos-universal.dmg |
drag to Applications, right-click and choose Open the first time, then enter your password |
| Windows 10/11 64-bit | strait-0.4.1-windows-x64.zip |
unzip, keep Strait.exe and wintun.dll together, double-click and accept the administrator prompt |
| Other Linux | strait-0.4.1-linux-x64.tar.gz, strait-0.4.1-linux-arm64.tar.gz |
sudo ./nat-tunnel gui |
Tested (on these exact files)
- WebSocket without a reachable port (AWS, two Linux peers behind NATs in different regions): 6 of 6 connections, about 1.1 to 1.7 s, 0% loss. Also with all UDP blocked on the client, where it is picked automatically.
- Ubuntu packages (AWS, x86-64 and arm64): both install, report 0.4.1 and open the window on a virtual screen.
- Windows (AWS Server 2022): client to a Linux host at 277 Mbit/s; Linux client through a Windows host, leaving from the Windows address; command-line output in a console and when redirected; no console host is started for the window.
- macOS: signature verifies, both architectures run, the window starts.
- Unit and integration tests: 545 pass.
Not tested / known limits
- The window on a real Windows desktop (the test server has no graphics; there the app writes the reason to
strait-gui-error.txt). - The macOS password prompt was confirmed on a development build of the same code, not on this disk image.
- The TCP hole punch is IPv4 only, needs routers that keep one port per connection source (it fails on symmetric NAT, like UDP hole punching), and the host still needs working UDP for rendezvous.
- Linux still needs
sudofor the full tunnel. - The apps are not notarized or code-signed, so macOS and Windows show a warning on first open.
Strait 0.4.0
First packaged release. Direct peer-to-peer internet sharing, no relay: servers only help the two devices meet.
Downloads
- Ubuntu / Debian:
strait_0.4.0_amd64.deb(Intel/AMD),strait_0.4.0_arm64.deb(ARM).sudo apt install ./<file>, then open Strait from the menu. - macOS:
strait-0.4.0-macos-universal.dmg(Apple silicon + Intel). Drag to Applications, right-click > Open the first time (ad-hoc signed, not notarized). - Windows 10/11 x64:
strait-0.4.0-windows-x64.zip. KeepStrait.exeandwintun.dlltogether, double-click, accept the administrator prompt (not code-signed: SmartScreen > More info > Run anyway). - Other Linux:
strait-0.4.0-linux-x64.tar.gz/-arm64.tar.gz(sudo ./nat-tunnel gui).
Checksums are inSHA256SUMS.
What changed
- Fixed: a host started from the app on macOS or Linux let clients connect and then dropped them after a few seconds (no forwarding in kernel mode). The app host now always uses the userspace exit.
- Shadowsocks and the obfuscated-UDP option can be offered by a host behind NAT, without a public address.
- Windows: administrator prompt on double-click, no console window, and a message box plus
strait-gui-error.txtinstead of a window that silently closes. - GUI: if the default graphics path fails or hangs, the app retries with OpenGL, then reports the reason.
- Packages for Ubuntu/Debian, macOS and Windows.
Tested
- AWS: Ubuntu 24.04 x86-64 and arm64 (package install, GUI on a virtual screen with both renderers, client-to-host tunnel at about 470 Mbit/s with no loss), Windows Server 2022 (Windows client to Linux host, Linux client to Windows host, internet reached through the Windows host).
- macOS: signature check, both CPU types transfer data through the tunnel, app launches.
- Earlier AWS NAT matrix (16 houses): see the README.
Not tested / known limits
- The GUI window on a real Windows or macOS desktop, the macOS and Linux administrator prompts, and the Windows UAC self-elevation were not exercised by an automated test.
- Not verified against real DPI: the obfuscated-UDP option is our own envelope (not WireGuard-compatible) and does not hide from filters that flag random-looking UDP; WebSocket sends no server name when connecting to an IP address; Xray needs the Xray program installed separately and an open TCP port on the host.
- Both peers behind symmetric NAT, or a UDP-blocked network, cannot connect directly (by design: no relay).