list elements of set
0x1 | nftables <[email protected]> Sat, 27 Sep 2025 10:06:46 +0200
| Newsgroups | gmane.comp.security.firewalls.netfilter.general |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone,
I would like to list all ipv4 elements of a named set.
the set is named
mx_bans_cidr
the command i used:
sudo nft list set ip filter mx_bans_cidr
Error: No such file or directory
list set ip filter mx_bans_cidr
I followed the description from this page
https://wiki.nftables.org/wiki-nftables/index.php/Sets#Listing_named_sets
The query for element in a set is also not working.
I tried all kind of versions of the command, one that surprised me was:
sudo nft get element ip basetable filter mx_bans_cidr { *.*.*.* }
Error: syntax error, unexpected string, expecting '{' or '$'
get element ip basetable filter mx_bans_cidr { somefile-x.x.x.tar.gz
someotherfile-y.y.y.tar.gz }
Those are 2 files, that contain 4 dots in the filename, in the working
directory ?!
Thanks for any hint