#!/usr/bin/env -S nft -f table ip wg0_ipv4 { {% if vpn_bridge_role == "server" %} chain postrouting { type nat hook postrouting priority 100; iif wg0 oif {{ ansible_default_ipv4.interface }} masquerade; } {% endif %} }