Have a look at Community Tip - Fixing Error 522: Connection timed out.
You’ll likely need to allow all Cloudflare IPs.