Re: "Unknown error" message from pfctl on an existing table

Kristof Provost <[email protected]> Fri, 20 Sep 2024 11:00:32 +0100
Newsgroups gmane.os.freebsd.security.general
Message-ID <[email protected]>
On 20 Sep 2024, at 10:50, Alexander Leidinger wrote:
> Hi,
>
> # pfctl -s Tables
> bruteforce
> crowdsec-blocklists
> crowdsec6-blocklists
> martians
> martians6
>
> # pfctl -t crowdsec-blocklists -T show
> pfctl: Unknown error: -1.
>
> What could be the cause of this error?
The next debugging step would be to use ‘truss’ to see what call fails.

I can reproduce the error message attempting to list a table that doesn’t exist.

There’s been a bug with table name length: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279225 so perhaps that’s what you’re running into.

Best regards,
Kristof