wg0 du serveur

This commit is contained in:
uap32-r 2021-12-15 11:38:58 +01:00
parent d6bdd0d059
commit 169252756e

12
wireguard/wg0-serv.conf Normal file
View File

@ -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