The pieces / weirdnet-relay

weirdnet-relaynew

A relay and bootstrap node you can run: circuit relay v2, Kademlia server, an info page.

GitHub Not on crates.io yet weirdnet-relay = "0.1"

What it is

A small daemon on weirdnet-net with relay_server on. Phones and other nodes behind NAT reserve a slot and become reachable at …/p2p/RELAY/p2p-circuit/p2p/PEER; DCUtR tries a direct path first and the circuit is the fallback.

It also serves the Kademlia DHT, announces itself under the relay provider key, answers AutoNAT probes, and publishes a page with its name, peer id and addresses for people and apps to add it.

What is in it

  • Circuit relay v2 server with configurable limits (unlimited by default).
  • Kademlia server mode and the /weirdnet/relay/1 provider record, so nodes find relays they were not configured with.
  • Its node key and state in a SQLCipher database (weirdnet-storage), keyed from a systemd credential.
  • An info page: HTML at / and /.well-known/weirdnet-relay.json.
  • A TOML config file, flags and environment variables; structured logs; a hardened systemd unit.

Where it fits