50-wireguard/

This commit is contained in:
raphanaud 2021-11-15 17:24:33 +01:00
parent 36874c851a
commit 25c0fdaa9b
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
SBGswrABm13tZGpO70WKZjCtEF4YcGlJkBXORNgkJHE=

View File

@ -0,0 +1 @@
pKM5noo3ZF3v3t3fBJBYzvFt61ItJxIkEHC0uXkCgAU=

View File

@ -0,0 +1,14 @@
# générer des clés : cd /etc/wireguard; umask 077 ; wg genkey | tee private.key | wg pubkey > public.key
[Interface]
Address = 10.0.2.1/24 # Adresses autorisées dans le VPN
Listenport = 51820
# clé privée de machine A (actuelle)
PrivateKey = SBGswrABm13tZGpO70WKZjCtEF4YcGlJkBXORNgkJHE=
# UDP service port; 51820 is a common choice for WireGuard
ListenPort = 51820
[Peer]
# clé publique de machine B (l'autre)
PublicKey = qhiQishoQMM6Y/g7OnUeLNX5T2p0FQx2oq+F/qKQfVc=
AllowedIPs = 10.0.2.1/24 # le peer peut acceder au serveur