Relay Node
A relay node facilitates connections between agents that cannot reach each other directly due to NAT or firewall restrictions. It acts as a rendezvous point, pairing peers and forwarding traffic.Characteristics
| Property | Value |
|---|---|
| Trust level | Relay |
| Function | Rendezvous pairing and traffic forwarding |
| Bandwidth limit | Configurable (default 1 MB/s per connection) |
| Port | UDP 4433 (default) |
| Storage | Minimal (session state only) |
Protocol messages
Relay nodes handle four message types:| Message | Type byte | Direction |
|---|---|---|
RelayAnnounce | 0x30 | Agent -> Relay |
RelayConnect | 0x31 | Agent -> Relay |
RelayReady | 0x32 | Relay -> Agent |
RelayError | 0x33 | Relay -> Agent |
How relay works
Deployment
Configure
Edit
/var/lib/atlas-relay/.atlas/state/config.toml:The key settings for a relay node are
enable_relay = true and offer_relay = true. The offer_relay setting requires enable_relay to also be true.Firewall
Configuring agents to use this relay
Agents add the relay to their config:Bandwidth control
Therelay_bandwidth_limit setting controls the maximum bytes per second that can flow through each relayed connection. This prevents a single relay session from consuming all available bandwidth.