Source
On remote device (server)
- add the following content:
On endpoint device (client)
[Interface]
PrivateKey = auto-generated
ListenPort = 51820
Address = 10.0.254.2/32
[Peer]
PublicKey = public key from server config
AllowedIPs = 10.0.254.1/32
Endpoint = server-public-IP:51820