While trying to access the admin panel, after successfully logging in, I get the message error “Sorry, you are not allowed to access this page.”. In the error log I see an error regarding COMODO WAF, could be unrelated. How can I resolve this and get admin access again?
If this is to do with Comodo, you are in the wrong place. This forum is for Cloudflare.
If you believe this is related to Cloudflare WAF, you should be able to see what security feature was doing the block, in your WAF events.
If you can find the security event, you can create a custom firewall rule where you skip this specific security feature on the path (contains) /wp-admin.