Linux Netfilter discussions
 help / color / mirror / Atom feed
* Question on rate limiting on nftables
@ 2026-06-08 11:30 Andre Rodier
  2026-06-08 12:45 ` Kerin Millar
  2026-06-08 21:54 ` imnozi
  0 siblings, 2 replies; 13+ messages in thread
From: Andre Rodier @ 2026-06-08 11:30 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

Hello,

I am testing nftables SSH connections attempts limit, and I read about "meters"

I would like to know the difference between these two methods of new connections limiting, and to ensure the first one is correct.

The first option:

~~~
table inet filter {
  [...]
  meta nfproto ipv4 tcp dport ssh ct state new,untracked \
  limit rate over 10/second \
  counter add @banned_ipv4 { ip saddr . ssh } \
  comment "Ban SSH bots"
}
~~~

And the second option:

~~~
table inet filter {
  [...]
  meta nfproto ipv4 tcp dport ssh ct state new,untracked \
  meter ssh4 { ip saddr limit rate over 10/second } \
  add @banned_ipv4 { ip saddr . ssh }
}
~~~

Is there any advantage using the second method ?

Thanks for your insights

-- 
🌐 https//rodier.me/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

end of thread, other threads:[~2026-06-08 21:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-08 11:30 Question on rate limiting on nftables Andre Rodier
2026-06-08 12:45 ` Kerin Millar
2026-06-08 13:14   ` Andre Rodier
2026-06-08 14:32   ` Slavko
2026-06-08 15:01     ` Andre Rodier
2026-06-08 15:57       ` Lars Noodén
2026-06-08 17:05         ` Kerin Millar
2026-06-08 16:05       ` Reindl Harald
2026-06-08 17:10         ` Kerin Millar
2026-06-08 16:56       ` Slavko
2026-06-08 17:24         ` Kerin Millar
2026-06-08 15:25     ` Kerin Millar
2026-06-08 21:54 ` imnozi

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