Linux Netfilter discussions
 help / color / mirror / Atom feed
* Re: List chain during attack high CPU usage
@ 2023-08-03 11:49 Brskt
  2023-08-22  9:56 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Brskt @ 2023-08-03 11:49 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi,

Is there any updates on this ?

https://marc.info/?l=netfilter&m=166256224929259&w=2

I don't understand why using "nft list chain netdev firewall filter" 
take time and CPU usage even if a set have a high numbers of elements 
since we don't show the elements in the set.

There is the filter command in the chain "nft add rule netdev firewall 
filter update @ratelimit_test { ip saddr . ip daddr . th dport } counter 
drop" which use the set but, we don't see how many elements and/or which 
elements are in the set.

Listing a chain should not try to load the elements in the set(s) that 
are used in a filter like iptables with ipset does not.
It also do the same even if "counter" is not used.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* List chain during attack high CPU usage
@ 2022-08-31  0:18 Brskt
  2022-09-01 10:34 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Brskt @ 2022-08-31  0:18 UTC (permalink / raw)
  To: netfilter

Hello,

I'm using some filter which uses sets with meters. When the server is 
receiving a lot of packets per seconds (~800k+) and using the command to 
list the chain, it does take ~80% of CPU and take a long time to return 
an output.

# cat /etc/issue
Welcome to Alpine Linux 3.16

# nft -v
nftables v1.0.5 (Lester Gooch #4)

# uname -r
5.15.62-1-lts


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

end of thread, other threads:[~2023-08-22  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 11:49 List chain during attack high CPU usage Brskt
2023-08-22  9:56 ` Pablo Neira Ayuso
  -- strict thread matches above, loose matches on Subject: below --
2022-08-31  0:18 Brskt
2022-09-01 10:34 ` Pablo Neira Ayuso
2022-09-07 14:54   ` Pablo Neira Ayuso

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