NetBSD Problem Report #49119
From www@NetBSD.org Fri Aug 15 16:00:28 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 21EF5AD6A8
for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 Aug 2014 16:00:28 +0000 (UTC)
Message-Id: <20140815160026.85D46AD6AD@mollari.NetBSD.org>
Date: Fri, 15 Aug 2014 16:00:26 +0000 (UTC)
From: jlmuir@imca-cat.org
Reply-To: jlmuir@imca-cat.org
To: gnats-bugs@NetBSD.org
Subject: NPF not loaded and active after boot
X-Send-Pr-Version: www-1.0
>Number: 49119
>Category: kern
>Synopsis: NPF not loaded and active after boot
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 15 16:05:00 +0000 2014
>Closed-Date: Sat Jan 19 21:44:03 +0000 2019
>Last-Modified: Sat Jan 19 21:44:03 +0000 2019
>Originator: J. Lewis Muir
>Release: 6.1.4
>Organization:
>Environment:
NetBSD violin.my.domain 6.1.4 NetBSD 6.1.4 (GENERIC) amd64
>Description:
After adding "npf=YES" to /etc/rc.conf and rebooting, NPF is not loaded nor active:
===
# npfctl show
Filtering: inactive
Configuration: empty
===
But it should be loaded and active.
>How-To-Repeat:
1. Create a super simple /etc/npf.conf containing the following:
===
group (default) {
pass final all
}
===
2. Add "npf=YES" to /etc/rc.conf.
3. Reboot: "shutdown -r now".
4. Check the status of NPF:
===
# npfctl show
Filtering: inactive
Configuration: empty
===
>Fix:
I don't have a fix, but I do have a workaround. I'm wondering if somehow the
npf kernel module is erroneously getting automatically unloaded. My workaround is to add the following to /etc/rc.local:
===
/sbin/modunload npf
/sbin/modload npf
/sbin/npfctl reload
/sbin/npfctl start
===
Now, after booting, NPF is loaded and active:
===
# npfctl show
Filtering: active
Configuration: loaded
group (default) {
pass final all
}
===
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Sat, 09 Dec 2017 23:59:39 +0000
State-Changed-Why:
Fixed in netbsd-8. There was something broken with auto-unloading, IIRC.
Unlikely that the module changes will get pulled up to netbsd-6, though..
State-Changed-From-To: feedback->closed
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Sat, 19 Jan 2019 21:44:03 +0000
State-Changed-Why:
Resolved.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.