Summary: | pfctl -a '*' -sn does not recursively print nat-anchors | ||
---|---|---|---|
Product: | Base System | Reporter: | Guido Kollerie <guido> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | kp, ozkan.kirik |
Priority: | --- | ||
Version: | 12.2-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Guido Kollerie
2021-01-12 20:31:54 UTC
This is more of a missing feature than a bug. It turns out that the code required to recursively walk anchors was just never present for nat rules. OpenBSD reworked things so that there's no longer a distinction between regular rules and nat rules, but we don't have those changes. This should work though: https://reviews.freebsd.org/D34455 A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a20773c810814dd130ca1f0fbf08d27fea465555 commit a20773c810814dd130ca1f0fbf08d27fea465555 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2022-03-05 16:55:48 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-03-08 09:51:09 +0000 pfctl: support recursive printing of nat rules PR: 252617 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34455 sbin/pfctl/pfctl.c | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f1a4505ee00b570fb7f5901adfcac490fcf74f7b commit f1a4505ee00b570fb7f5901adfcac490fcf74f7b Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2022-03-05 16:55:48 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-03-15 02:52:37 +0000 pfctl: support recursive printing of nat rules PR: 252617 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34455 (cherry picked from commit a20773c810814dd130ca1f0fbf08d27fea465555) sbin/pfctl/pfctl.c | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=4da31fbe58a43cfbd15350fc36c1e8357123b334 commit 4da31fbe58a43cfbd15350fc36c1e8357123b334 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2022-03-05 16:55:48 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2022-03-15 02:52:18 +0000 pfctl: support recursive printing of nat rules PR: 252617 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34455 (cherry picked from commit a20773c810814dd130ca1f0fbf08d27fea465555) sbin/pfctl/pfctl.c | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) |