nakamochi / ndg

nakamochi daemon and gui source code
https://nakamochi.io
MIT License
2 stars 1 forks source link

direct connection to node (hole punching) #4

Open x1ddos opened 1 month ago

x1ddos commented 1 month ago

at the moment, direct connection to the node is possible only via tech-savvy configuration of a home router and other tricks like ipv6. tor as an alternative is slow and unreliable.

a "zero conf" direct connection from a client app like zap or zeus has been one of the goals of the project from the start. however, hole punching doesn't always work, in which case an intermediary relay is required. a client and the node also need a handshake server. additional requirement is open source, at least the self-hosted bits.

i believe nebula is the best candidate to start with:

later could also implement some alternatives.

NOTE: tor is still available for those who wants it. UI-wise, probably a "route all traffic through tor" toggle would make sense. turning it "on" should then disable direct connections.

alternatives

innernet

similar in its goals to Slack's nebula or Tailscale, but takes a bit of a different approach. It aims to take advantage of existing networking concepts like CIDRs and the security properties of WireGuard to turn your computer's basic IP networking into more powerful ACL primitives.

one disadvantage is, would need to build own android and ios client apps. otherwise, a pretty good alternative to nebula.

zerotier

tailscale

i've considered quite a few others: they are either more complicated to setup, implement other things or not fully open source.

nostr

other resources