Spectrum is available on all paid plans. Pro and Business support selected protocols only, whereas Enterprise supports all TCP and UDP based traffic. Refer to Configuration options for more configuration details.
To create a Spectrum application, you can either use an IP address, a CNAME Record or a Load Balancer. Independently of the method you use, you can create the application through the dashboard or via API.
Create a Spectrum application using an IP address
To create a Spectrum application using an IP address, Cloudflare normally assigns you an arbitrary IP from Cloudflare’s IP pool to your application. If you want to use your own IP addresses, you can use BYOIP or you can also use a Static IP. In these two last cases, you need to create your Spectrum application through the API, as these features are not available via dash. When using the API, the field origin_direct takes as input the IP address.Add your application via Dashboard
Select Create an Application. If this is your first time using Spectrum, the Create an Application modal appears.
Select your Application Type.
Under Domain, enter the domain that will use Spectrum.
Under Edge Port, enter the port Cloudflare should use for your application.
Under Origin, enter your application’s origin IP and port.
If your application requires the client IP and supports Proxy ProtocolOpen external link, enable Proxy Protocols. Proxy Protocol is a method for a proxy like Cloudflare to send the client IP to the origin application.
Add your application via API
Below is a curl example and the associated data being posted to the API.
curl-X POST "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/spectrum/apps"\
Create a Spectrum application using a CNAME record
To create a Spectrum application using a CNAME record, you will need to create a CNAME recordOpen external link on your Cloudflare hosted zone that points to your origin’s hostname. This is required to resolve to your hostname origin. Refer to Create DNS records, for more information. When using a CNAME as an origin, note that Cloudflare needs to be authoritative for that zone. When using the API, the origin_dns field takes as input the CNAME record.Add your application via Dashboard
Create a Spectrum application using a Load Balancer
To create a Spectrum application using a Load Balancer, you will need to generate a Load Balancer from the dashboard or via the API. Refer to the Create a load balancer workflow for help.Add your application via Dashboard