Article View: muc.lists.netbsd.tech.userlevel
Article #85blocklist / npf in daily output
From: Brook Milligan
Date: Sun, 29 Nov 2026 17:21
Date: Sun, 29 Nov 2026 17:21
72 lines
3217 bytes
3217 bytes
Given the state of the current internet, it seems that blocklistd and an appropriate npf rule would be the recommended best practice. To facilitate monitoring them, I wonder if adding the following (see below) to /etc/daily and /etc/defaults/daily.conf would be appropriate.
I have been running something like this for some time and find the output useful for monitoring that blocklist/npf are working correctly.
Note that with this patch nothing different will happen on any systems with this installed, as the defaults for check_blocklist and check_npf are NO.
I appreciate any comments. Thanks a lot.
Cheers,
Brook
Index: etc/daily
===================================================================
RCS file: /cvsroot/src/etc/daily,v
retrieving revision 1.93
diff -u -r1.93 daily
--- etc/daily 23 Sep 2018 23:16:34 -0000 1.93
+++ etc/daily 26 Nov 2026 17:03:35 -0000
@@ -246,6 +246,21 @@
fi
fi
+if checkyesno check_blocklist; then
+ echo ""
+ echo "blocklist:"
+ blocklistctl dump ${check_blocklist_flags}
+ echo ""
+fi
+
+if checkyesno check_npf; then
+ for npf_rule in ${npf_rules}; do
+ echo "NPF rule: ${npf_rule}"
+ npfctl rule "${npf_rule}" list
+ echo ""
+ done
+fi
+
if checkyesno run_fsck; then
echo ""
echo "Checking file systems:"
Index: etc/defaults/daily.conf
===================================================================
RCS file: /cvsroot/src/etc/defaults/daily.conf,v
retrieving revision 1.18
diff -u -r1.18 daily.conf
--- etc/defaults/daily.conf 30 Jul 2012 17:09:34 -0000 1.18
+++ etc/defaults/daily.conf 26 Nov 2026 17:03:35 -0000
@@ -23,6 +23,8 @@
show_remote_fs=NO
check_mailq=YES
check_network=YES
+check_blocklist=NO
+check_npf=NO
full_netstat=NO
run_fsck=NO
run_fsck_flags=""
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<520447A9-C8A8-4195-B835-184281796A62@biology.nmsu.edu>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Brook Milligan <brook@biology.nmsu.edu> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: blocklist / npf in daily output Date: Sun, 29 Nov 2026 10:21:55 -0700 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <520447A9-C8A8-4195-B835-184281796A62@biology.nmsu.edu> MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="52923"; mail-complaints-to="news-admin@muc.de" Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes