[Bug 279225] pfctl(8) displays the name of the anchors incompletely

2024-05-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279225

Kristof Provost  changed:

   What|Removed |Added

 CC||k...@freebsd.org
   Assignee|b...@freebsd.org|k...@freebsd.org
 Status|New |In Progress

--- Comment #1 from Kristof Provost  ---
I see what's broken here and have a fix pending.

I suspect I need to fix another bug too (basically,
cfa1a13087096fe93d7a2976015ccda243476a64 needs to be done for nat rules too) so
I can write a decent test case, so it may be a few more days.

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


[Bug 279225] pfctl(8) displays the name of the anchors incompletely

2024-05-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279225

Bug ID: 279225
   Summary: pfctl(8) displays the name of the anchors incompletely
   Product: Base System
   Version: 15.0-CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: bin
  Assignee: b...@freebsd.org
  Reporter: dt...@disroot.org

Description:

When pfctl(8) is used to display anchors or to display NAT rules, the name of
the anchors is displayed incompletely compared to 14.0-RELEASE. This results in
programs failing when they depends on the output of pfctl(8) [1].

[1] https://github.com/DtxdF/AppJail/issues/10

Steps to reproduce this issue:

15.0-CURRENT:

```
# freebsd-version
15.0-CURRENT
# pfctl -sn
nat-anchor "appjail" all
nat-anchor "appjail" all
rdr-anchor "appjail" all
# pfctl -sA
  appjail-nat
  appjail-rdr
```

14.0-RELEASE:

```
# freebsd-version
14.0-RELEASE-p6
# pfctl -sn
nat-anchor "appjail-nat/jail/*" all
nat-anchor "appjail-nat/network/*" all
rdr-anchor "appjail-rdr/*" all
# pfctl -sA
  appjail-nat
  appjail-rdr
```

Tested on:

* 14.0-RELEASE-p6
* 15.0-CURRENT

Notes:

* I have used
`FreeBSD-15.0-CURRENT-amd64-20240516-d7adf3b47a05-270169-bootonly.iso` install
FreeBSD on bhyve using vm-bhyve.

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