All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Kerin Millar" <kfm@plushkava.net>
To: "Thomas Koeller" <thomas@koeller.dyndns.org>, netfilter@vger.kernel.org
Subject: Re: ipset vs. nftables set
Date: Tue, 12 Nov 2024 17:31:11 +0000	[thread overview]
Message-ID: <3e7fbdce-5d16-4abd-a315-3303da3874bc@app.fastmail.com> (raw)
In-Reply-To: <45ec57eecdb93fe0d03f63702ef68ebbb79bbdc1.camel@koeller.dyndns.org>

On Tue, 12 Nov 2024, at 2:55 PM, Thomas Koeller wrote:
> Hi,
>
> migrating my existing firewall setup from iptables + ipset to nftables, 
> I ran into a problem.
>
> The firewall uses an ipset containing ipv4 source addresses to 
> implement a dynamic blacklist. There are multiple rules that use this
> ipset, and these rules are in chains that belong to different tables. 
> This doesn't seem to be possible with nftables sets, that
> apparently always have to belong to one and only one table, is this 
> correct? At least I couldn't figure out how to create a set that
> is accessible throughout the entire ruleset.

Yes. Rules may only reference a named set from the enclosing table.

https://bugzilla.netfilter.org/show_bug.cgi?id=1472

-- 
Kerin Millar

  reply	other threads:[~2024-11-12 17:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 14:55 ipset vs. nftables set Thomas Koeller
2024-11-12 17:31 ` Kerin Millar [this message]
2024-11-12 17:46   ` Slavko
2024-11-12 18:14     ` Pablo Neira Ayuso
2024-11-12 18:18       ` Florian Westphal
2024-11-12 18:28         ` Pablo Neira Ayuso
2024-11-12 19:44         ` Kerin Millar
2024-11-12 19:57           ` Pablo Neira Ayuso
2024-11-12 20:23             ` Kerin Millar
2024-11-12 21:04               ` Slavko
2024-11-12 18:14 ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e7fbdce-5d16-4abd-a315-3303da3874bc@app.fastmail.com \
    --to=kfm@plushkava.net \
    --cc=netfilter@vger.kernel.org \
    --cc=thomas@koeller.dyndns.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.