aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2019-10-13 00:39:31 +0200
committerPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2019-10-13 00:39:31 +0200
commit49d9675b30f39b42650ae98d893cdbe305358aa0 (patch)
tree6b56450f5654675c771769094032ee9a88222338 /templates
parentFixed git ssh port, disabled restarting of disabled services (diff)
Wireguard configuration
Diffstat (limited to 'templates')
-rw-r--r--templates/wg.netdev.j221
-rw-r--r--templates/wg.network.j25
2 files changed, 26 insertions, 0 deletions
diff --git a/templates/wg.netdev.j2 b/templates/wg.netdev.j2
new file mode 100644
index 0000000..5d0bf5f
--- /dev/null
+++ b/templates/wg.netdev.j2
@@ -0,0 +1,21 @@
+[NetDev]
+Name = wg0
+Kind = wireguard
+Description = Wireguard
+
+#tamriel 10.0.27.1
+[WireGuard]
+ListenPort = 48574
+PrivateKey = {{ wireguard_private_key }}
+
+# balmora 10.0.27.2
+[WireGuardPeer]
+PublicKey = 6dbkVQAQPkbk0+wt6f+wge5cPW6THe0Kua830jio528=
+AllowedIPs = 10.0.27.2/32
+PersistentKeepalive = 20
+
+# motorola g6 10.0.27.3
+[WireGuardPeer]
+PublicKey = pqSY7SCKuRkHBTMWVhYAASrx/A1HF8Nlb3emnO8WqAc=
+AllowedIPs = 10.0.27.3/32
+PersistentKeepalive = 20
diff --git a/templates/wg.network.j2 b/templates/wg.network.j2
new file mode 100644
index 0000000..31fef48
--- /dev/null
+++ b/templates/wg.network.j2
@@ -0,0 +1,5 @@
+[Match]
+Name = wg0
+
+[Network]
+Address = 10.0.27.1/24