From 8ca6413b02e63eed0a86f1aa05cd15e711a358bb Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 18 Nov 2023 11:03:39 +0100 Subject: [PATCH] add nas host file --- ansible/host_vars/nas-dev | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ansible/host_vars/nas-dev diff --git a/ansible/host_vars/nas-dev b/ansible/host_vars/nas-dev new file mode 100644 index 0000000..dafbc45 --- /dev/null +++ b/ansible/host_vars/nas-dev @@ -0,0 +1,14 @@ +--- +wireguard_address: "10.0.1.8/24" +perrsistent_keepalive: "30" +wireguard_endpoint: "" + +wireguard_postup: + - iptables -A FORWARD -i wg0 -j ACCEPT + - iptables -A FORWARD -o wg0 -j ACCEPT + - iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE + +wireguard_postdown: + - iptables -D FORWARD -i wg0 -j ACCEPT + - iptables -D FORWARD -o wg0 -j ACCEPT + - iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE