I want to move my domain to cloudflare, so I changed my nameservers to cloudflare and the connection is lost, none of the clients can connect, I have read here that cloudflare does not support openfires ports and I need to create a subdomain https://community.cloudflare.com/t/openfire-im-cloudflare/35150
is there any straightforward manual how to do it? or will it be better to move my server to a different domain not under cloudflare?
EDIT: I have a cloudflare tunnel on one of my machines under proxmox running, if I put the openfire machine under tunnel, will it still block the connection?
I’m afraid I have no experience with Cloudflare. If their hosting blocks certain ports, then this will make it difficult to host an XMPP/Openfire server on there.
Theoretically, there are ways around this (by configuring Openfire to listen on ports allowed by Cloudflare, or use a solution like sslh to proxy multiple services on the same HTTP(S) ports (see Tech pages/XEP-0368 - XMPP WIKI), but I’m not sure if any of this is going to work with Cloudflare. I guess that at the very least, you’ll need to be able to make modifications to your DNS entries (to have DNS SRV records pointing the clients to the non-standard ports that you’ll be using).
It might be easiest to move to a hosting solution that doesn’t have these restrictions.
I am hosting openfire on my own server, its just the domain that I want to move to cloudflare because of price and after the change of nameservers I have https…
so looks like moving my server to a different domain will be the best, as I read here, the securest option is to install it from scratch as a namechange can break a lot of things, is it true?
I’m not sure what you mean. If Openfire is not hosted by Cloudflare, but only the DNS records are, then I’m not sure what the problem is. If Cloudflare doesn’t support DNS SRV records, then using an A or AAAA record to point your domain name to the IP address of your server that runs Openfire (which must then use the same domain name as its XMPP domain name value) should be ‘enough’.
I recommend against changing the XMPP domain name of a running server. You would basically mess up all the addressing. You can change the hostname and IP addresses of your server. Those changes only require changes to your DNS configuration.
In the Cloudflare dashboard, go to the DNS section. Locate the entry for your Openfire server and click on the orange cloud. Once it goes grey, give it about 5 minutes and XMPP should start working. When the cloud is orange, all your traffic is going through the Cloudflare network. As they have a very limited set of ports they allow through, you either need to bypass Cloudflare by clicking on the cloud icon in the DNS settings, or change XMPP to use a port they do allow through like 8443, 2087, 2089, etc.