
Here is a breakdown of why this happens and how to resolve it.
pfctl -nf /tmp/test.conf
In the world of BSD-based firewalls, the error is a classic headache caused by the "great syntax migration" that happened over a decade ago. pf configuration incompatible with pf program version
Or for OpenBSD: