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