Using "typeof" & concatenated map target in nftables-json

Subham Pal <[email protected]> Fri, 27 Feb 2026 15:24:43 +0530
Newsgroups gmane.comp.security.firewalls.netfilter.general
Message-ID <CAHeizqFastcBUqr3zNBOskM1q_XswndUGNtrXubtBMrPVyym3g@mail.gmail.com>
I am trying to configure netfilter using libnftables userspace library
and thinking of using json based input due to its structured nature.

But, I cannot figure out how to pass a set/map type using "typeof"
keyword. Also, setting multiple targets in a map in the form of list
of string creates a set, completely ignoring the "map" key.

I am in Ubuntu 24.04 and by nft version is 1.0.9.