summaryrefslogtreecommitdiff
path: root/roles/network/wireguard/gateway/templates/nftables.rules.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/network/wireguard/gateway/templates/nftables.rules.j2')
-rw-r--r--roles/network/wireguard/gateway/templates/nftables.rules.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/network/wireguard/gateway/templates/nftables.rules.j2 b/roles/network/wireguard/gateway/templates/nftables.rules.j2
index fcf4a21b..501b1d0b 100644
--- a/roles/network/wireguard/gateway/templates/nftables.rules.j2
+++ b/roles/network/wireguard/gateway/templates/nftables.rules.j2
@@ -4,7 +4,7 @@
table ip nat {
chain wireguard-gateway-{{ item.key }}-snat {
type nat hook postrouting priority 100; policy accept;
- ip saddr { {{ item.value.addresses | map('ipaddr', 'network/prefix') | join(', ') }} } oifname {{ item.value.ip_snat.interface }} snat to {{ item.value.ip_snat.to }}
+ ip saddr { {{ item.value.addresses | map('ansible.utils.ipaddr', 'network/prefix') | join(', ') }} } oifname {{ item.value.ip_snat.interface }} snat to {{ item.value.ip_snat.to }}
}
}
{% endif %}