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
F140952148: D50798.id156838.diff
Tue, Dec 30, 1:08 AM
Unknown Object (File)
Sun, Dec 28, 9:36 PM
Unknown Object (File)
Sun, Dec 28, 12:23 PM
Unknown Object (File)
Fri, Dec 26, 12:02 PM
Unknown Object (File)
Thu, Dec 25, 3:12 PM
Unknown Object (File)
Wed, Dec 17, 5:04 PM
Unknown Object (File)
Tue, Dec 16, 9:34 PM
Unknown Object (File)
Sun, Dec 14, 6:36 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