pf does not log events when it drops packets because max-* stateful options were reached. In some enviroments it is desirable that administrators are informed about all state overflows per particular rule.
more than one fix is possible:
1. add special logging terminal to pf grammar definition (per stateful option) which would log packets dropped because of this particular option to pflog
- too much changes
2. log via kernel printf for misc pf debug level. This can be accomplished by following patch:
How-To-Repeat: 1. compile FreeBSD 5.x system with pf module
2. load pf module
3. set ruleset containing stateful rules such as
pass out quick on fxp0 proto tcp from any to any port = 53 \
flags S/S \
keep state \
( max-src-states 2, max 6, max-src-nodes 4 )
4. generate traffic so that one of the stateful options causes packet drops
5. observe pf-related logs
packet drops caused by stateful options should be logged somehow.
To pf maintainer.
commit bit has been taken in for safekeeping.
For bugs matching the following criteria:
Status: In Progress Changed: (is less than) 2014-06-01
Reset to default assignee and clear in-progress tags.
Mail being skipped