Skip to contentSkip to conversation

list sets

DISCUSSION Slavko 2 participants 3 messages Jan 11, 2025

lore
Share & tools
lore

Slavko

author
#0 lore raw

Hi,

recently i start to use fail2ban with nftables and it works. It uses separate (configurable) table for its rules, where it puts particular sets.

But i noticed, that while i can list all sets in nftables, or limit that list to particular family, i cannot list sets of only one table:

nft -t list sets inet f2ban
Error: syntax error, unexpected string, expecting end of file or \
newline or semicolon
list sets inet f2ban
^^^^^

That result matches with the manpage, but it is surprising for me, especially when the sets belongs to table by definition...

Please, is here some special reason for that limitation, or just nobody coded it yet?

regards

Signature · 2 lines
Slavko
https://www.slavino.sk
#1 lore raw
Quoted 11 lines · Slavko

recently i start to use fail2ban with nftables and it works. It uses separate (configurable) table for its rules, where it puts particular sets.

But i noticed, that while i can list all sets in nftables, or limit that list to particular family, i cannot list sets of only one table:

nft -t list sets inet f2ban
Error: syntax error, unexpected string, expecting end of file or \
newline or semicolon
list sets inet f2ban

Try "list sets table inet f2ban".

author
#2 lore raw
Quoted 1 line · Florian Westphal

Try "list sets table inet f2ban".

Thanks, that works.

I am not able ti find that syntax in manpage, am i blend?

regards

Signature · 2 lines
Slavko
https://www.slavino.sk/