[Bug 262590] [pf] Anchor "blacklistd/*" not correctly shown in pfctl -a \* -s rules

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Mar 2022 21:57:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262590

--- Comment #4 from Kristof Provost <kp@freebsd.org> ---
Can you re-test post 3c3a19d1f42af049e798b193d4fd2a872c7c8fec ? This appears to
be working now.

At least, with a test case where I set these rules:
anchor "blacklist" {
        anchor "foo" {
                pass in from 1.2.3.4
        }
}

pfctl -sA -a "blacklist" produces
blacklist/foo

pfctl -sr -a "blacklist/*" produces
anchor "foo" all {
  pass in inet from 1.2.3.4 to any flags S/SA keep state
}

pfctl -sr -a "blacklist/foo" produces
pass in inet from 1.2.3.4 to any flags S/SA keep state

and pfctl -sr -a "*" produces
anchor "blacklist" all {
  anchor "foo" all {
    pass in inet from 1.2.3.4 to any flags S/SA keep state
  }
}

That all appears to be correct.

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