Table des matières

wireguard

Tuto:

Générer les clés:

wg genkey | sudo tee /etc/wireguard/privatekey | wg pubkey | sudo tee /etc/wireguard/publickey

Redémarrage à chaud sans démonter l'interface après ajout d'un Peer au tunnel wg-monitoring :

sudo bash -c 'wg syncconf wg-monitoring <(wg-quick strip wg-monitoring)'

AllowedIPs

AllowedIPs a 2 utilités :

Donc AllowedIPs = « ce qui vient du pair est accepté » et « ce qui va vers ces préfixes part par le tunnel ».