public inbox for netfilter@vger.kernel.org
 help / color / mirror / Atom feed
* Renaming nft sets & maps
@ 2026-04-15 10:30 Subham Pal
  2026-04-15 13:42 ` losts
  2026-04-15 13:45 ` Florian Westphal
  0 siblings, 2 replies; 3+ messages in thread
From: Subham Pal @ 2026-04-15 10:30 UTC (permalink / raw)
  To: netfilter

IPset gives an option of renaming sets. Is there any similar facility
to do that in nft with sets and maps?

I couldn't manage to find any.

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

* Re: Renaming nft sets & maps
  2026-04-15 10:30 Renaming nft sets & maps Subham Pal
@ 2026-04-15 13:42 ` losts
  2026-04-15 13:45 ` Florian Westphal
  1 sibling, 0 replies; 3+ messages in thread
From: losts @ 2026-04-15 13:42 UTC (permalink / raw)
  To: netfilter; +Cc: Subham Pal

I think that your only option is to create new set, change rules referring to old set, and delete old set.

Can be done as an atomic change in one transaction.

2026-04-15T10:31:14Z Subham Pal <subhampal789@gmail.com>:

> IPset gives an option of renaming sets. Is there any similar facility
> to do that in nft with sets and maps?
> 
> I couldn't manage to find any.

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

* Re: Renaming nft sets & maps
  2026-04-15 10:30 Renaming nft sets & maps Subham Pal
  2026-04-15 13:42 ` losts
@ 2026-04-15 13:45 ` Florian Westphal
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Westphal @ 2026-04-15 13:45 UTC (permalink / raw)
  To: Subham Pal; +Cc: netfilter

Subham Pal <subhampal789@gmail.com> wrote:
> IPset gives an option of renaming sets. Is there any similar facility
> to do that in nft with sets and maps?
>
> I couldn't manage to find any.

In ipset its normally used for atomic updates, but nftables
sets are always updated atomically.

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

end of thread, other threads:[~2026-04-15 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 10:30 Renaming nft sets & maps Subham Pal
2026-04-15 13:42 ` losts
2026-04-15 13:45 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox