Page MenuHomeFreeBSD

pf: add a generic packet rate matching filter
ClosedPublic

Authored by kp on Jun 11 2025, 7:40 PM.
Tags
None
Referenced Files
F154282637: D50798.id.diff
Mon, Apr 27, 2:23 PM
Unknown Object (File)
Sat, Apr 25, 5:18 AM
Unknown Object (File)
Fri, Apr 24, 1:28 PM
Unknown Object (File)
Tue, Apr 21, 11:37 AM
Unknown Object (File)
Sun, Apr 19, 4:46 PM
Unknown Object (File)
Sun, Apr 12, 9:38 AM
Unknown Object (File)
Thu, Apr 9, 8:56 PM
Unknown Object (File)
Mon, Apr 6, 1:20 PM

Details

Summary

allows things like
pass in proto icmp max-pkt-rate 100/10
all packets matching the rule in the direction the state was created are
taken into consideration (typically: requests, but not replies).
Just like with the other max-*, the rule stops matching if the maximum is
reached, so in typical scenarios the default block rule would kick in then.
with input from Holger Mikolon
ok mikeb

Obtained from: OpenBSD, henning <henning@openbsd.org>, 5a4ae9a9cb
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable