ansible/roles/nftables_infra/templates/nftables.d/70-nat.conf.j2

20 lines
361 B
Text
Raw Normal View History

{{ ansible_managed | comment }}
table ip nat {
2022-01-13 13:59:49 +01:00
chain postrouting {
type nat hook postrouting priority srcnat
policy accept
2022-01-13 13:59:49 +01:00
iif lo return
# Is there any other way to do that?
meta pkttype { multicast, broadcast } return
ip daddr 224.0.0.0/24 return
ip saddr $need_nat_ipv4 ip daddr != $aurore_ipv4 \
snat $nat_public_ipv4 persistent
}
}