aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/wireguard/templates/wg0.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/wireguard/templates/wg0.conf.j2')
-rw-r--r--roles/wireguard/templates/wg0.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/wireguard/templates/wg0.conf.j2 b/roles/wireguard/templates/wg0.conf.j2
index fca9a0b..7dae2ff 100644
--- a/roles/wireguard/templates/wg0.conf.j2
+++ b/roles/wireguard/templates/wg0.conf.j2
@@ -6,7 +6,7 @@ Address = {{ wg_addr4 }}, {{ wg_addr6 }}
ListenPort = {{ wg_listen_port }}
SaveConfig = false
-{% if wg_firewall %}
+{% if wg_router %}
PostUp = iptables -t nat -A POSTROUTING -s {{ wg_addr4 }} -m policy --pol none --dir out -j MASQUERADE
PostUp = iptables -A FORWARD -s {{ wg_addr4 }} -j ACCEPT
PostUp = ip6tables -t nat -A POSTROUTING -s {{ wg_addr6 }} -m policy --pol none --dir out -j MASQUERADE