[Bug 294859] pfctl -vnf and pfctl -vf output differs for identical input
Date: Wed, 29 Apr 2026 00:54:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294859
Bug ID: 294859
Summary: pfctl -vnf and pfctl -vf output differs for identical
input
Product: Base System
Version: 15.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: andy@codeedog.com
OS: 15.0-RELEASE-p6 FreeBSD 15.0-RELEASE-p6 GENERIC amd64
Expected behavior:
When passing flags -nv and -v to pfctl, both outputs should match.
Observed behavior:
The pfctl -nv output does not match -v output. Note: The pfctl -nv output omits
the "-- rule was already present" that pfctl -v output includes.
# Example: pf.conf
block in tagged FOO
pass in tag FOO
block in tagged FOO
> pfctl -vnf pf.conf
block drop in all tagged FOO
pass in all flags S/SA keep state tag FOO
block drop in all tagged FOO
> pfctl -vf pf.conf
No ALTQ support in kernel
ALTQ related functions disabled
block drop in all tagged FOO
pass in all flags S/SA keep state tag FOO
block drop in all tagged FOO -- rule was already present
> pfctl -sr
block drop in all tagged FOO
pass in all flags S/SA keep state tag FOO
Other notable tests that fail:
# Example 1:
block in
pass in
block in # -- rule was already present
# Example 2:
pass in
block in
pass in # -- rule was already present
This bug compounds Bug 294858 because a dry run of a file with the optimizer
turned off appears to work, but in reality, the optimizer cannot (currently) be
turned off.
--
You are receiving this mail because:
You are the assignee for the bug.