All of lore.kernel.org
 help / color / mirror / Atom feed
* list sets
@ 2025-01-11 10:07 Slavko
  2025-01-11 12:33 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: Slavko @ 2025-01-11 10:07 UTC (permalink / raw)
  To: netfilter

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

-- 
Slavko
https://www.slavino.sk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: list sets
  2025-01-11 10:07 list sets Slavko
@ 2025-01-11 12:33 ` Florian Westphal
  2025-01-11 13:03   ` Slavko
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2025-01-11 12:33 UTC (permalink / raw)
  To: Slavko; +Cc: netfilter

Slavko <linux@slavino.sk> wrote:
> 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".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: list sets
  2025-01-11 12:33 ` Florian Westphal
@ 2025-01-11 13:03   ` Slavko
  0 siblings, 0 replies; 3+ messages in thread
From: Slavko @ 2025-01-11 13:03 UTC (permalink / raw)
  To: netfilter ML

On 11. januára 2025 12:33:39 UTC, Florian Westphal <fw@strlen.de> wrote:

>Try "list sets table inet f2ban".

Thanks, that works.

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

regards


-- 
Slavko
https://www.slavino.sk/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-11 13:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-11 10:07 list sets Slavko
2025-01-11 12:33 ` Florian Westphal
2025-01-11 13:03   ` Slavko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.