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)
Thu, Mar 13, 7:49 PM
Unknown Object (File)
Thu, Feb 27, 1:40 PM
Unknown Object (File)
Thu, Feb 27, 5:33 AM
Unknown Object (File)
Fri, Feb 21, 8:47 PM
Unknown Object (File)
Fri, Feb 21, 5:00 PM
Unknown Object (File)
Thu, Feb 20, 9:53 AM
Unknown Object (File)
Jan 31 2025, 7:00 PM
Unknown Object (File)
Jan 19 2025, 1:38 PM

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 54307
Build 51197: 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