r/coolgithubprojects • u/developer6 • 9d ago
[P2P home-connection sharing, no VPS or relay] - Strait
https://github.com/daniad6/strait
2
Upvotes
r/coolgithubprojects • u/developer6 • 9d ago
1
u/developer6 9d ago
I built Strait because I wanted to use a trusted home internet connection from elsewhere without renting a VPS or opening ports on my router. One machine at home shares the connection and gives you an invite code; the other side pastes it and connects. The two punch a direct peer-to-peer tunnel through both NATs. There is no relay. If a direct path isn't possible, it says so.
They find each other through public services (Nostr relays, the BitTorrent DHT, ntfy) that only see an encrypted record. After that, traffic goes device to device, end-to-end encrypted (ChaCha20-Poly1305, with a Noise handshake I modeled in ProVerif). Hosts can issue personal invites and revoke one person at a time.
It's a Rust desktop app, Apache-2.0, v0.9.0, with builds for Linux, macOS and Windows. Still early, so I'd love people to try it behind their own NAT and tell me what breaks.
1
u/DueWindow9033 8d ago
Use yggdrasil-network