Auto-Relay
Automatically routes traffic through the closest, lowest-latency gateway.
Overview
The Auto-Relay feature (formerly called Failover) allows multiple gateways to act as relays for peers, making the network more flexible and resilient.
Key points:
-
Multiple auto-relays can be configured simultaneously.
-
Peers automatically select the relay with the lowest latency.
-
All gateways are auto-relay enabled by default, meaning any new gateway can act as a relay immediately.
-
Useful in NAT scenarios: Auto-Relay is especially beneficial when nodes are behind CGNAT, Double NAT, or restrictive firewalls, where direct peer-to-peer connections may fail.
How Auto-Relay Works
-
Each gateway advertises its Auto-Relay status across the network.
-
Peers evaluate which gateways are reachable and measure latency.
-
Peers connect through the active Auto-Relay gateway with the lowest latency.
-
If that gateway becomes unavailable, the peer automatically switches to another reachable Auto-Relay gateway.
This creates dynamic redundancy and ensures smooth network performance without manual failover setup.
Default Behavior
-
Every new gateway is automatically set as Auto-Relay = ON.
-
You can view or edit this setting in the Edit Gateway modal.
-
Manual configuration is optional — Auto-Relay works automatically across gateways.
Notes
-
Auto-Relay replaces the older Failover logic but retains backward compatibility.
-
Any gateway can act as a relay without explicit assignment.
-
Latency-based routing balances network load and maintains optimal data flow.
-
Particularly helpful when NAT or firewall restrictions prevent direct peer-to-peer connections.