I have an ssh server running on port 22 and I’m using the free version of Cloudflare (no spectrum) to handle DNS. But it looks like port 22 is blocked by Cloudflare by default in proxy mode. Is it true? If I turn off proxy mode (DNS only), the ssh server is accessible. Is there a list of ports that are allowed or disallowed? I can run the ssh serve on another port if there is another port that is open.
You’ll have to SSH to the IP address, or create a subdomain that’s set to so you can SSH to that hostname.
By default, Cloudflare doesn’t proxy the SSH connections. The only way to SSH to a hostname is to disable the proxy, which in this case would expose your origin host/server IP address to the public → I wouldn’t recommend doing this.
The list of supported and compatible ports with Cloudflare proxy can be found at the link below (web traffic):