summaryrefslogtreecommitdiff
path: root/roles/network/wireguard/gateway/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-20 23:30:14 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-20 23:30:14 +0100
commitb6d36823effe31d9c12c927f5d05ddab8c7005c0 (patch)
treef20a721e510a85da81428b2f7d9f46ae51614b05 /roles/network/wireguard/gateway/templates
parentch-mimas: external_ip (diff)
parentadd wireguard-based remote vpn connections to ch-(pan|mimas) (diff)
Merge branch 'topic/wireguard-extern-vpn'
Diffstat (limited to 'roles/network/wireguard/gateway/templates')
-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 %}