1 server, 2 clients
Install Wireguard on all machines.
$ wg genkey > server_privatekey
$ wg pubkey < server_privatekey > server_publickey_client1
$ wg pubkey < server_privatekey > server_publickey_client2
$ wg genkey | tee client1_privatekey | wg pubkey > client1_publickey
$ wg genkey | tee client2_privatekey | wg pubkey > client2_publickey
$ wg-quick up wg0
$ wg-quick down wg0
$ wg show
interface: wg0
public key: <SERVER PUBLIC KEY>
private key: (hidden)
listening port: 51820
fwmark: 0xca6c
peer: <CLIENT 1 PUBLIC KEY>
endpoint: ...
allowed ips: 10.100.0.2/32
latest handshake: 4 seconds ago
transfer: 21.11 KiB received, 38.92 KiB sent
peer: <CLIENT 2 PUBLIC KEY>
endpoint: ...
allowed ips: 10.100.0.3/32
latest handshake: 9 seconds ago
transfer: 911.10 KiB received, 2.57 MiB sent