Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2022 21:57:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262590] [pf] Anchor "blacklistd/*" not correctly shown in pfctl -a \* -s rules
Message-ID:  <bug-262590-227-iQ0CoITIeV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262590-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262590-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262590

--- Comment #4 from Kristof Provost <kp@freebsd.org> ---
Can you re-test post 3c3a19d1f42af049e798b193d4fd2a872c7c8fec ? This appear=
s 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262590-227-iQ0CoITIeV>