50-wireguard/
This commit is contained in:
parent
36874c851a
commit
25c0fdaa9b
1
sio2/sisr/50-wireguard/wg-private.key
Normal file
1
sio2/sisr/50-wireguard/wg-private.key
Normal file
@ -0,0 +1 @@
|
||||
SBGswrABm13tZGpO70WKZjCtEF4YcGlJkBXORNgkJHE=
|
1
sio2/sisr/50-wireguard/wg-public.key
Normal file
1
sio2/sisr/50-wireguard/wg-public.key
Normal file
@ -0,0 +1 @@
|
||||
pKM5noo3ZF3v3t3fBJBYzvFt61ItJxIkEHC0uXkCgAU=
|
14
sio2/sisr/50-wireguard/wg0.conf
Normal file
14
sio2/sisr/50-wireguard/wg0.conf
Normal 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
|
Loading…
x
Reference in New Issue
Block a user