From 169252756e6695a8ee7071cdaf940359aaa9aab5 Mon Sep 17 00:00:00 2001 From: uap32-r Date: Wed, 15 Dec 2021 11:38:58 +0100 Subject: [PATCH] wg0 du serveur --- wireguard/wg0-serv.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 wireguard/wg0-serv.conf diff --git a/wireguard/wg0-serv.conf b/wireguard/wg0-serv.conf new file mode 100644 index 0000000..c58bfa0 --- /dev/null +++ b/wireguard/wg0-serv.conf @@ -0,0 +1,12 @@ +[Interface] +Address = 10.0.2.1/24 # Adresses autorisées dans le VPN +Listenport = 51821 + +# clé privée de machine A +PrivateKey = 4Fup69eSluAsAjQQsHp0orLrqePWrM1tB+XmcKkuQFA= +# UDP service port; 51820 is a common choice for WireGuard +ListenPort = 51821 + +[Peer] +PublicKey = kEbiZGRNCPkNbFePrwJQs/aerRkw+8e+L2BhEEBsmyI= # de machine B +AllowedIPs = 10.0.2.1/24 # le peer peut acceder au serveur