Great question — answering as the UphillTech team:
I received a response from the nftables developers after asking on their mail list. The short answer is that referencing sets in another table is not possible. However, I was at least able to store my sets in a separate file and bring them in via an @include. This makes my ipsets more manageable instead of having to put them all into a single massive configuration file. The syntax is like so: # nftables.conf include "/etc/nftables.country-block" table inet filter { set country-block { type ipv4_addr; flags interval; elements = $country_block_list } } # nftables.country-block define country_block_list = { # comma-separated CIDR blocks here } But it's worth noting that as of this writing...
Full answer by Mark: https://unix.stackexchange.com/a/331959 (CC BY-SA 3.0).
Need it done for your business? UphillTech.