About Relays
Relays are networking constructs that allow Devices on one network to access another.
Basic Principle
If a Device has more than one network interface that is active it is possible to install a relay.
In the example below, Device 2 has access to two networks.
- Network 1: 10.0.8.0/24 network (CloudLink)
- Network 2: 192.168.0.0/24 local private network.
Normally it is not possible for Devices on Network 1 to access Devices in Network 2.
Therefore, installing a Relay would overcome this.
In Practice
In the example below Device 2 has a Relay installed. Therefore, Device 1, Device 2 and the Wireguard Peer all have access to the 192.168.0.0/24 network.
On the 192.168.0.0/24 network there is a "Other Peer" that has been added. All the traffic bound for the 10.0.8.0/24 network coming to and from this machine will go through Device 2.
WARNING
The network speed will be effected by how performant the Device with the Relay installed is since all the traffic needs to be routed through this Device.