I'm currently in the process of migrating a firehol[0]firehol based router firewall to nftables. In general, there are no issues on the functional level, however, as I like to summarize repetitive sections with maps[1]maps and sets[2]sets as much as possible, I'm struggling to get counters[3]counters added in the same "pass". Lets take for example these dnat rules
Do you know a way of somehow in-cooperate counters in a map-based rule?
[0] https://firehol.org/ [1] https://wiki.nftables.org/wiki-nftables/index.php/Maps [2] https://wiki.nftables.org/wiki-nftables/index.php/Sets [3] https://wiki.nftables.org/wiki-nftables/index.php/Counters