I’m very confused here. macOS does not have a built-in firewall based on PF. Various macOS facilities use PF internally, but not for firewall functionality [1].
If I take a stock macOS 15.0 system and try to disable PF on it, I see this:
% sudo pfctl -d
…
pfctl: pf not enabled
That is, PF started out disabled. So something on your system is enabling PF, and I encourage you to investigate what that is.
You mentioned that you’re unable to make local connections in your “app”. What sort of app is that? If it’s an iOS app running in the simulator, I recommend that you upgrade to macOS 15.6, which fixes a bug causing local network privacy problems in that case.
But if you’re referring to something else, I’d appreciate details as to what that is, because the best path forward is going to depend on your ultimate destination.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] The built-in firewall, aka the application firewall, doesn’t use PF, but is implemented on top of Network Extension infrastructure.