[Bug 295230] pfctl: filtering states by interface (-ss -i iface) does not seem to work.

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 May 2026 13:58:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295230

            Bug ID: 295230
           Summary: pfctl: filtering states by interface (-ss -i iface)
                    does not seem to work.
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: matteo@FreeBSD.org

I have states whose origif is `wgworld`:

# pfctl -ss -vv | grep -B 3 wgworld                                             
No ALTQ support in kernel
ALTQ related functions disabled
all udp 172.24.2.1:53 <- 172.24.3.2:62681       MULTIPLE:MULTIPLE
   age 00:01:46, expires in 00:00:45, 4:4 pkts, 248:160 bytes, anchor 28, rule
10, no-df, random-id, reassemble-tcp
   id: 3d2d036a00000000 creatorid: 9443bfd0
   origif: wgworld
--
all udp 172.24.2.1:53 <- 172.24.3.2:61341       MULTIPLE:MULTIPLE
   age 00:01:46, expires in 00:00:45, 4:4 pkts, 248:160 bytes, anchor 28, rule
10, no-df, random-id, reassemble-tcp
   id: 3e2d036a00000000 creatorid: 9443bfd0
   origif: wgworld
--
   [2230848582 + 130448] wscale 8  [1073880721 + 131328] wscale 6
   age 00:00:54, expires in 24:00:00, 3075:1679 pkts, 254650:198027 bytes,
anchor 28, rule 3, no-df, random-id, reassemble-tcp
   id: 412d036a00000000 creatorid: 9443bfd0
   origif: wgworld
--
all udp 172.24.3.63:137 <- 172.24.3.2:137       NO_TRAFFIC:SINGLE
   age 00:00:32, expires in 00:00:28, 1:1 pkts, 96:124 bytes, anchor 28, rule
1, no-df, random-id, reassemble-tcp
   id: 482d036a00000000 creatorid: 9443bfd0
   origif: wgworld
--
all udp 172.24.3.2:137 -> 172.24.3.63:137       SINGLE:NO_TRAFFIC
   age 00:00:32, expires in 00:00:28, 1:0 pkts, 96:0 bytes, anchor 28, rule 1
   id: 492d036a00000000 creatorid: 9443bfd0
   origif: wgworld

#

No such states are shown when additionally passing "-i wgworld":

#pfctl -ss -vv -i wgworld                                                       
No ALTQ support in kernel
ALTQ related functions disabled
#

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