Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2026 00:48:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 294858] pfctl -o none fails to skip optimization
Message-ID:  <bug-294858-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294858

            Bug ID: 294858
           Summary: pfctl -o none fails to skip optimization
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some 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:

pfctl -o none should skip pf rule optimization.

Observed behavior:

pfctl -o none fails to skip optimization.

# Example: pf.conf
block in tagged FOO
pass in tag FOO
block in tagged FOO

> pfctl -o none -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

Turning optimizer off within the file also fails:

# Example: pf-set-opt-off.conf
set ruleset-optimization none
block in tagged FOO
pass in tag FOO
block in tagged FOO

> pfctl -vf pf-set-opt-off.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

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294858-227>