From 509f6e4e55b3725a9eb08c4fdf2832dd391c33c3 Mon Sep 17 00:00:00 2001 From: zwnk Date: Wed, 5 Feb 2020 01:59:57 +0100 Subject: [PATCH] Add 'wireguard.conf' --- wireguard.conf | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 wireguard.conf diff --git a/wireguard.conf b/wireguard.conf new file mode 100644 index 0000000..3e6f72f --- /dev/null +++ b/wireguard.conf @@ -0,0 +1,50 @@ +# Server +[Interface] +Address = 10.8.0.1 +ListenPort = 51820 +PrivateKey = privserver +SaveConfig = false + +# laptop start +[Peer] +PublicKey = client1 +PresharedKey = sss +AllowedIPs = 10.8.0.3/32 +# laptop end + +# omv +[Peer] +PublicKey = client2 +AllowedIPs = 10.8.0.4/32 +# omv end + +################################################### + +# Client 1 +[Interface] +PrivateKey = privcl1 +Address = 10.8.0.3/32 +MTU = 1280 + +[Peer] +PublicKey = pubserv +PresharedKey = sss +AllowedIPs = 10.8.0.0/24 +Endpoint = xxx:51820 +PersistentKeepalive = 25 + +################################################## + +# Client 2 +[Interface] +PrivateKey = privcl2 +Address = 10.8.0.4/32 +MTU = 1280 + +[Peer] +PublicKey = pubserv +AllowedIPs = 10.8.0.0/24 +Endpoint = xxx:51820 +PersistentKeepalive = 25 + +################################################## \ No newline at end of file