I have a cloud hosted VPS that runs a service. This VPS has an interface with a public IP.
Some equipment I own communicates with this service that is available on this VPS through this public IP.
The IP is associated with a specific DNS created in Cloudflare, like MyDomainExample.xyz.
What I intend is to hide this IP through the “proxy” function. However, when I activate this functionality, the devices stop communicating. this is because the name no longer resolves to the machine’s IP and resolves to Cloudflare’s proxy IPs. I’ve tried to create a proxied CNAME like test.MyDomainExample.xyz expecting to relay the connections into the server but with no success.
Is there any way around this problem? As I said, I’m a novice in this field.
It’s unlikely they stop communicating because the IP address changed. It’s more likely that the devices are using a port not supported by Cloudflare’s proxy.
You’d need to investigate the ports/protocols used by your equipment and look at any errors/ logs on the device and/or the Cloudflare firewall.
So when i activate proxy mode, even if MyDomainExample.xyz resolves to a different IP (proxied one) it should still be able to work? Cloudflare does the relay to the original IP?