Linux Netfilter discussions
 help / color / mirror / Atom feed
* Advantage(s) of static over dynamic nftables sets?
@ 2020-03-18 21:17 Frank Myhr
  2020-03-18 21:35 ` Florian Westphal
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Myhr @ 2020-03-18 21:17 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi,

As an nftables newbie I was a bit surprised to discover that defining a 
set as static prevents adding or deleting elements not only from the 
packet path but also from the nft command line:

#  nft add element ip ip_filter static_set { a.b.c.d }
Error: Could not process rule: Device or resource busy

Which is easily remedied by defining the set as dynamic instead.

So now I wonder: why not define every set as dynamic? Which would allow 
modification of any set's elements without having to reload the entire 
firewall -- thereby preserving accumulated counters and other stateful 
objects. Would performance and/or memory usage take a significant hit by 
doing this?

Thanks,
Frank

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

end of thread, other threads:[~2020-03-19  0:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-18 21:17 Advantage(s) of static over dynamic nftables sets? Frank Myhr
2020-03-18 21:35 ` Florian Westphal
2020-03-18 22:11   ` Frank Myhr
2020-03-18 22:51     ` Florian Westphal
2020-03-18 23:14       ` Frank Myhr
2020-03-19  0:08         ` Florian Westphal
2020-03-19  0:21           ` Frank Myhr

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