summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_vpn/templates/wg.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_wireguard_vpn/templates/wg.conf.j2')
-rw-r--r--roles/install_wireguard_vpn/templates/wg.conf.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/install_wireguard_vpn/templates/wg.conf.j2 b/roles/install_wireguard_vpn/templates/wg.conf.j2
new file mode 100644
index 0000000..3e25549
--- /dev/null
+++ b/roles/install_wireguard_vpn/templates/wg.conf.j2
@@ -0,0 +1,7 @@
+[Interface]
+ListenPort = {{ wireguard_vpn_port }}
+PrivateKey = {{ wireguard_vpn_priv_key }}
+Address = {{ wireguard_vpn_address }}/128
+MTU = 1400
+PostUp = /etc/wireguard/upmyk.sh
+PreDown = /etc/wireguard/downmyk.sh