]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/wireguard.network.erb
Add basic infrastructure for wireguard tunnels
[chef.git] / cookbooks / networking / templates / default / wireguard.network.erb
diff --git a/cookbooks/networking/templates/default/wireguard.network.erb b/cookbooks/networking/templates/default/wireguard.network.erb
new file mode 100644 (file)
index 0000000..636f286
--- /dev/null
@@ -0,0 +1,8 @@
+[Match]
+Name=wg0
+
+[Network]
+Address=<%= node[:networking][:wireguard][:address] %>/128
+
+[Route]
+Destination=fd43:e709:ea6d:1::/64