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