Created attachment 232344 [details] Patch against main as of 20220309 The security/520-pfdenied script only reports blocked packets from the main ruleset or any blocklistd(8) anchor. The attached patch adds an option to periodic.conf(5) to make it possible to specify additional anchors to report.
Am I misreading things, or did we lose ' "" ' in the for loop in 520.pfdenied? That'd mean we no longer list the main ruleset, right?
Sorry, my bad. I changed something at the last minute and forgot to go back. Please give me a few minutes to check that everything actually works when I put ' "" ' back.
Created attachment 232345 [details] Patch against main as of 20220309 Updated patch to restore inclusion of default ruleset.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0784121c963e39aa9e8b33c4e0a0c181daf75277 commit 0784121c963e39aa9e8b33c4e0a0c181daf75277 Author: Matteo Riondato <matteo@FreeBSD.org> AuthorDate: 2022-03-09 14:02:11 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-03-10 11:08:59 +0000 pfdenied: support reporting on additional anchors The security/520-pfdenied script only reports blocked packets from the main ruleset or any blocklistd(8) anchor. Add an option to periodic.conf(5) to make it possible to specify additional anchors to report. PR: 262446 Reviewed by: kp share/man/man5/periodic.conf.5 | 9 ++++++++- usr.sbin/periodic/etc/security/520.pfdenied | 2 +- usr.sbin/periodic/periodic.conf | 1 + 3 files changed, 10 insertions(+), 2 deletions(-)
Thank you, Kristof. Are you planning to MFC or shall I just close the PR?
(In reply to Matteo Riondato from comment #5) I have no specific plans to, no. It's probably too late for 13.1 at this point anyway.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a33ead9c9cf3f92a3b11b76b4717d8eb4f3a0403 commit a33ead9c9cf3f92a3b11b76b4717d8eb4f3a0403 Author: Matteo Riondato <matteo@FreeBSD.org> AuthorDate: 2022-03-12 22:59:25 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-03-12 22:59:25 +0000 pfdenied: match actual variable name to the documented one PR: 262446 Reviewed by: kp usr.sbin/periodic/etc/security/520.pfdenied | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)