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)
Sun, Aug 17, 9:20 PM
Unknown Object (File)
Fri, Aug 15, 12:19 AM
Unknown Object (File)
Wed, Aug 13, 6:36 AM
Unknown Object (File)
Sun, Aug 10, 10:42 PM
Unknown Object (File)
Sat, Aug 9, 11:13 PM
Unknown Object (File)
Sat, Aug 2, 11:14 PM
Unknown Object (File)
Sat, Aug 2, 1:13 PM
Unknown Object (File)
Sun, Jul 27, 10:11 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64766
Build 61650: arc lint + arc unit