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
Unknown Object (File)
Sat, Oct 10, 1:46 PM
Unknown Object (File)
Wed, Oct 7, 12:53 AM
Unknown Object (File)
Tue, Oct 6, 6:44 PM
Unknown Object (File)
Tue, Oct 6, 6:11 PM
Unknown Object (File)
Mon, Oct 5, 8:54 AM
Unknown Object (File)
Sun, Oct 4, 10:11 PM
Unknown Object (File)
Fri, Oct 2, 12:46 PM
Unknown Object (File)
Sep 12 2026, 7:38 AM

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