Stopping, disabling or removing the captive portal, the problem continued. As this only happened after updating to the latest version and I had the server in hand, making the settings to deploy to the client in the next few days, I made a backup of opnsense and zenarmor and formatted it. I installed version 23.7, downloaded the available updates and did the restore. Everything operating normally so far.