Page MenuHomeFreeBSD

pf: fix failure to log correct action through default rule
AbandonedPublic

Authored by franco_opnsense.org on Aug 24 2023, 9:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 21, 5:23 PM
Unknown Object (File)
Mon, May 13, 1:07 AM
Unknown Object (File)
Mon, May 13, 1:06 AM
Unknown Object (File)
Sun, May 12, 2:57 PM
Unknown Object (File)
Sun, May 12, 12:40 PM
Unknown Object (File)
Sun, May 12, 10:08 AM
Unknown Object (File)
Fri, May 3, 3:00 PM
Unknown Object (File)
Fri, May 3, 11:47 AM

Details

Reviewers
kp
Summary

The default rule is used to call PFLOG_PACKET macro and the reason
is given directly for when e.g. PFRES_SHORT is invoked and PF_DROP
is carried out. However, the action is not passed down directly so
action needs to be adjusted when the default rule made the decision
due to a non-matching reason, which means PF_DROP.

OpenBSD fix: https://github.com/openbsd/src/commit/7b8683a1743e7

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 53264
Build 50155: arc lint + arc unit

Event Timeline

@kp when you said "Supporting opnsense is your job, not mine. You don’t get to just throw bugs over the wall without doing any actual testing on freebsd."[1] I'm unsure if you really meant this or if you simply don't react because it's not important to you or FreeBSD?

I can live with begging for fixes or just for them to be comitted, but I don't appreciate the attitude you have towards contributors.

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273207