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

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Fri, 20 Sep 2024 10:00:32 UTC
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