[[https://download.wireguard.com/windows-client/wireguard-installer.exe|The WireGuard Installer Windows]] * [[https://www.wireguard.com/quickstart/]] * [[https://www.justegeek.fr/tuto-creer-un-serveur-vpn-wireguard-sous-debian-11/]] * [[https://www.it-connect.fr/mise-en-place-de-wireguard-vpn-sur-debian-11/]] * [[https://www.smarthomebeginner.com/wireguard-windows-setup/]] === Réseau Windows set to Private Network (Réseau Privé) === Set-NetConnectionProfile -InterfaceAlias 'wg0' -NetworkCategory 'Private' Get-NetConnectionProfile * [[https://vpn.how/en/pages/autostart-wireguard-after-windows-reboot.html]] === Install Tunnel as Service autostart === [[https://r-pufky.github.io/docs/services/wireguard/windows-setup.html#add-pre-configured-tunnel]] === Set Up / Down === sudo wg-quick up wg0 sudo wg-quick down wg0 sudo systemctl enable wg-quick@wg0.service === Génération de clef === wg genkey | tee private.key | wg publey > public.key wg genpsk > psk.key === Serveur: === [Interface] Address = x.x.x.1/24 #adresse dans le vpn, avec masque sous reseau du reseau SaveConfig = true ListenPort = 51820 PrivateKey = ######## [Peer] PublicKey = ######## PresharedKey = ######## AllowedIPs = x.x.x.2/32 # adresse dans le vpn autorisé depuis ce peer, d'où le /32. [Peer] ... === Peer === [Interface] PrivateKey = ######## Address = x.x.x.2/24 [Peer] PublicKey = ######## PresharedKey = ######## AllowedIPs = x.x.x.0/24 # adresse du reseau vpn Endpoint = y.y.y.y:51820 #adresse public du serveur