Page MenuHomeFreeBSD

pf: fix failure to log correct action through default rule
Needs ReviewPublic

Authored by franco_opnsense.org on Aug 24 2023, 9:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 3:00 PM
Unknown Object (File)
Fri, May 3, 11:47 AM
Unknown Object (File)
Wed, May 1, 12:14 PM
Unknown Object (File)
Sun, Apr 21, 7:29 AM
Unknown Object (File)
Feb 22 2024, 6:53 PM
Unknown Object (File)
Feb 17 2024, 7:12 PM
Unknown Object (File)
Feb 17 2024, 5:45 PM
Unknown Object (File)
Feb 17 2024, 3:52 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