Wireguard

Simple way of peering two nodes. Only one needs the address and port. Both can be defined though. But when one is behind a firewall or nat. That would be the one which has only the public key and address.

wg set wg0 peer [PEER PUBLICKEY] allowed-ips 10.0.0.2/32 endpoint 88.123.123.123:58842
wg set wg0 peer [PEER PUBLICKEY] allowed-ips 10.0.0.1/32 persistent-keepalive 25