Wireguard : Configuration

umask 077
wg genkey > private
wg pubkey < private

ip link add dev wg0 type wireguard
ip addr add xx.xx.xx.xx/24 dev wg0
wg set wg0 private-key ./private
ip link set up dev wg0

wg set wg0 peer [Cle public du server] allowed-ips [IP Server]/32 endpoint 51.75.252.166:46754

Sur le serveur
wg set wg0 peer [Cle public du client] allowed-ips [IP Cleint]/32 endpoint 51.254.99.78:54726