How to track nat outgoing connections with nftables. Just need to look at nat stats, which output addresses used more or less.
root@nat-1:~# nft list table nat
table ip nat {
chain post {
type nat hook postrouting priority 100; policy accept;
ip saddr 10.0.0.0/8 oif "bond0.926" snat to 19.246.159.1-19.246.159.7
}
chain pre {
type nat hook prerouting priority -100; policy accept;
}
}
netstat-nat works with iptables but not with nftables anymore.
netstat-nat -S
Could not read info about connections from the kernel, make sure netfilter is enabled in kernel or by modules.
I can of course use tcpdump, but there should be some nicer utility ;-)