diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-11-20 21:36:51 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-11-20 21:36:51 +0100 |
commit | d4fc7adc43f356759adb21f881e542b6159b6624 (patch) | |
tree | d4f3b8264c9b532f85cf9eac70d376ddf0d4fb8e /roles/network/wireguard/gateway/templates | |
parent | wireguard modules are in mainline linux since a while now... (diff) |
wireguard roles: some more cleanups and fixes
Diffstat (limited to 'roles/network/wireguard/gateway/templates')
-rw-r--r-- | roles/network/wireguard/gateway/templates/nftables.rules.j2 | 2 |
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 %} |