Important thing about orgin Rules

Hello,
How can I set a specific port for a subdomain that is on the cloudflare proxy so that all the requests that are sent on that subdomain on the specific port, point it to the server IP not the cloudflare proxy.
So that those requests are sent from specific port on that subdomain directly sent it to the server IP, not the cloud proxy, but when someone gets ping from that subdomain, it show proxied Cloudflare ips.
For example, we have a vpn configuration that is passing data on the sub.mydomain.com domain with a specific port such as Cloudflare’s (http or https) ports and this subdomain its cloudflare proxy tick is on.
But a rule must be set so that the requests that are sent on that specified port over that subdomain , sent its requests directly to the IP server, not to the cloudflare proxy, but when we get a ping from that subdomain , and we get requests on difference ports over that subdomain, instead of showing server ip must showd proxied cloudflare ips.

What tool should I use?
Origin rule?

You’d have to make a separate unproxied DNS Record just for the VPN.
This isn’t something Origin Rules can do because it’s not possible. When you have a specific subdomain like sub.mydomain.com and send a request to it, DNS is just told to resolve the A/AAAA records for that domain*. DNS has no idea nor does it care which port you are using. The closest you could get is with Enterprise Spectrum having it proxy different ports to different services, but that would require Enterprise and still be going through Cloudflare.
*The only real exception for this is applications like Minecraft which use Service Records, in which if you give it sub.mydomain.com it’d lookup _minecraft._tcp.sub.mydomain.com and follow the response, which isn’t the same as what you’re looking for and would have to be supported by that application.

Your options are to unproxy that entire subdomain, or make a different unproxied/dns-only subdomain.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.