Frank Myhr <fmyhr@xxxxxxxxxxx> wrote: > On 2021/03/31 17:40, Florian Westphal wrote: > > You could use a named counter and then fetch it via 'nft list counter > > inet tablenam countername'. > > This is the straightforward solution! > > Florian, is it correct that *all* counters are stateful objects, they're > just anonymous stateful objects if used in a rule without first declaring > them with a name? The wiki reads as if they're 2 separate things (I'm happy > to fix but want to check with you first): > > https://wiki.nftables.org/wiki-nftables/index.php/Counters The normal counters do not have a 'hidden' internal name. Thats also the reason why simple counters do not show up in 'nft list counters', they only exist in the context of the rule they are used in.