r/onions • • 10h ago

I built a meshnet protocol as an alternative to Tor that isn't beholden to internet infrastructure

Thumbnail
github.com
0 Upvotes

I've been working on Cairn – a transport layer that routes your traffic through a mesh of nearby devices instead of a VPN server.

Why: Signal, Tor, WireGuard all have infrastructure sitting in a jurisdiction. That infrastructure can be subpoenaed, backdoored, or switched off during a shutdown. Cairn tries to remove the server entirely.

How it works:

Traffic is Sphinx onion-routed through 3 hops – a neighbour's phone, a Pi with a LoRa antenna, whatever's nearby. Each relay sees only the next hop; no node sees both ends. The Sphinx v2 implementation uses ChaCha20 as an SPRP with HMAC, padded into 450/514/578-byte buckets so frame size doesn't leak payload length.

Bearers: BLE, Wi-Fi Direct, LAN/mDNS, and Tor all have working drivers. LoRa has the bearer type wired but no serial driver yet. Send preference on the default path is Tor → internet → LAN → BLE → Wi-Fi Direct.

Three routing profiles. Max Privacy (the default on Android and desktop) forces Sphinx wrapping and restricts mix hops to RF-capable peers only. Balanced and Internet-Down Relay are user-selected – they don't auto-switch.

Platforms:

- Android – registers as a system VPN, no app changes needed

- Linux/macOS/Windows – TUN interface via JNA/utun/Wintun, or SOCKS5 on 1080 without root

- iOS – Swift implementation with NEPacketTunnelProvider (separate from the KMP core; iOS 16+, no Simulator tunnel)

Honest status: beta. I just finished a five-pass adversarial security audit on it and closed ~25 findings – unauthenticated frame injection into the TUN, an IPv6 leak that bypassed the tunnel entirely, an eclipse attack where one RF peer could become all three mix hops, variable-time X25519 when libsodium was missing. There's a documented DoS tradeoff in the replay cache I haven't solved properly yet (capacity-based fail-closed instead of time-windowed expiry).

Don't stake your life on it. Do break it and tell me how.

Repo: https://github.com/amoni094/Cairn


r/onions • • 5h ago

❓ Question Is Dig AI 🧅good?

0 Upvotes

Hi! I've found (longer time ago, but i think it is getting useful now) daгk net, not regulated ai named Dig AI (onion can be found on daunt(dot)link). I want to ask if it does give good answers and if is that worth it? Are there any better dw AIs (for free) and if i should use this or if it is not that good how it looks.

Thank you for answering.

Sorry my english.