[Bug 290478] PF: anchors are not displayed correctly

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 24 Oct 2025 16:35:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290478

--- Comment #5 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
(In reply to Jose Luis Duran from comment #3)
It's not the same bug, but a problem with recursive anchors. 

After entering the first subanchor, the loop gets exited, and no further
anchors are displayed. IIRC, someone requested displaying nested anchors with
the default listing; the request was fulfilled, but probably also introduced
this regression.

On another machine:

# pfctl -sA
  blocklistd
  ftp-proxy
  student-vm
  virt-pc
  pc30
pfctl: Anchor does not exist.

The "pc30" is the first subanchor nested in virt-pc, but there are more of
them:

# pfctl -a virt-pc/pc30 -sn
rdr on vlan0 inet proto tcp from any to 89.x.x.x port = xxx30 -> x.y.z.30 port
3389
# pfctl -a virt-pc/pc31 -sn
rdr on vlan0 inet proto tcp from any to 89.x.x.x port = xxx31 -> x.y.z.31 port
3389
# pfctl -a virt-pc/pc32 -sn
rdr on vlan0 inet proto tcp from any to 89.x.x.x port = xxx32 -> x.y.z.32 port
3389
...


The reported issue is only mild, since the above rdr anchors are working fine.

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