From 7ecbfcd3e6543cf8c46849c4d3b48faa20aaf202 Mon Sep 17 00:00:00 2001 From: ludovic diemert Date: Mon, 15 Nov 2021 17:48:46 +0100 Subject: [PATCH] 2 --- sio2/cyber/10-WireGuard/wg0.conf | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/sio2/cyber/10-WireGuard/wg0.conf b/sio2/cyber/10-WireGuard/wg0.conf index 0e7a81f..88e3b36 100644 --- a/sio2/cyber/10-WireGuard/wg0.conf +++ b/sio2/cyber/10-WireGuard/wg0.conf @@ -1,14 +1,11 @@ [Interface] -Address = 10.0.2.1/24 # Adresses autorisées dans le VPN -Listenport = 51820 - -# clé privée de machine A -PrivateKey = WM0fO9rPFKRtkvKKEcqnUXwhTJ/aWtr8oWXkowuEFX8= -# UDP service port; 51820 is a common choice for WireGuard - +PrivateKey = GIOgHwIs/0uNvwn/iAX5dP5PGjDY7+OpM/c50X6ry2k= +Address = 10.0.2.2/32 +#DNS = 192.168.1.254 [Peer] -PublicKey = u0/S3/nbLceihWjlsSbPSBvhT4BsLp/b+dGpeLhqElg= -AllowedIPs = 10.0.2.1/24 # le peer peut acceder au serveur - - +PublicKey = COah6qTtwZo4h9GhtBHBhySOwmH4g78sI49NLGmze3M= +#AllowedIPs = 10.0.0.0/8, 192.168.1.0/24 +AllowedIPs = 0.0.0.0/0 +Endpoint = 192.168.0.40:51820 +PersistentKeepalive = 20