NEPacketTunnelProvider stopped connecting on arm macOS 14 during tests

I have tests where I connect to NEPacketTunnelProvider. I run tests with circleci and fastlane, on self hosted intel and arm macs. I updated macs from macOS 13 to macOS 14 and the tests on arm stopped connecting, while the same tests on intel kept working as usual. Moreover, I noticed the tests don't work when run from circleci and fastlane. If I cancel the job and click "connect" myself on the app that stayed hanging from the cancelled tests, the connection will succeed. But if the tests are running, the connection will fails. Running the tests from xcode succeeds too.

These are the logs from the tunnel. Could you suggest me where to dig? Or maybe you can see the issue from the logs?

NEPacketTunnelProvider stopped connecting on arm macOS 14 during tests
 
 
Q