Configuration options
Last updated Oct 15, 2026 Spectrum is a global TCP and UDP proxy running on Cloudflare's edge nodes. It does not terminate the connection in the application-layer sense. However, at Layer 4, Spectrum does terminate the TCP and UDP sockets in both directions. The L4 payloads of TCP segments and UDP datagrams are passed back and forth as-is, without modifications.
This means Spectrum does not inspect, modify, or upgrade application-layer protocols. For example, Spectrum cannot convert an HTTP connection to HTTPS, add HTTP headers, or apply WAF rules to TCP traffic. To add Layer 7 functionality such as CDN, Workers, or Bot Management, set the application type to HTTP/HTTPS.
For common issues and troubleshooting guidance, refer to Spectrum Troubleshooting.
Note
Some of these features require an Enterprise plan. If you would like to upgrade, contact your account team.
Application type
The application type determines the protocol by which data travels from the edge to your origin. Select TCP/UDP if you want to proxy directly to the origin. If you want to set up products like CDN, Workers, or Bot management, you need to select HTTP/HTTPS. In this case, traffic is routed through Cloudflare's pipeline instead of connecting directly to your origin.
IP addresses
When a Spectrum application is created, it is assigned a unique IPv4 and IPv6 address, or you can provision the application to be IPv6 only. The addresses are not static, and they may change over time. The best way to look up the current addresses is by using DNS. The DNS name of the Spectrum application will always return the IPs currently dedicated to the application.
The addresses are anycasted from all Cloudflare data centers, with the exception of data centers in China.
SMTP
Spectrum can act as a TCP load balancer in front of an SMTP server but will not act as an intermediary mail server. Instead, Spectrum passes data through to your origin. The client IP shown on mail will be the Cloudflare edge IP. If the mail server requires knowing the true client IP, it should use Proxy Protocol to get the source IP from Cloudflare. Cloudflare recommends enabling Proxy Protocol on applications configured to proxy SMTP.
SMTP servers may perform a series of checks on servers attempting to send messages through it. These checks are intended to filter requests from illegitimate servers.
Messages may be rejected if:
- A reverse DNS lookup on the IP address of the connecting server returns a negative response.
- The reverse DNS lookup produces a different hostname than what was sent in the SMTP
HELO/EHLOmessage. - The reverse DNS lookup produces a different hostname than what is advertised in your SMTP server's banner.
- The result of a reverse DNS lookup does not match a corresponding forward DNS lookup.
Spectrum applications do not have reverse DNS entries.
Additionally, SMTP servers may perform a DNS lookup to find the MX records for a domain. Messages from your server may be rejected if an MX record for your domain is associated with a Spectrum application, as the IP address of server will not match the Spectrum IP address.
Ports
Cloudflare supports all TCP ports.
Port ranges
Spectrum applications can be configured to proxy traffic on ranges of ports.
For direct origins:
{
"protocol": "tcp/1000-2000",
"dns": {
"type": "CNAME",
"name": "range.example.com"
},
"origin_direct": ["tcp://192.0.2.1:3000-4000"]
}
For DNS origins:
{
"protocol": "tcp/1000-2000",
"dns": {
"type": "CNAME",
"name": "range.example.com"
},
"origin_dns": {
"name": "origin.example.com",
"ttl": 1200
},
"origin_port": "3000-4000"
}
The number of ports in an origin port range must match the number of ports specified in the protocol field. Connections to a port within a port range at the edge will be proxied to the equivalent port offset in the origin range. For example, in the configurations above, a connection to range.example.com:1005 would be proxied to port 3005 on the origin.
IP Access rules
If IP Access rules are enabled for a Spectrum application, Cloudflare will respect the IP Access rules configured for that domain. Cloudflare only respects rules created for specific IP addresses, IP blocks, countries, or ASNs for Spectrum applications. Spectrum will also only respect rules created with the actions allow or block.
Note
Network analytics data for Spectrum does not reflect the outcomes of IP Access rules. Instead, to verify whether traffic was allowed or blocked based on these rules, consult the Spectrum event logs.
Health checks and IP Access Rules
When IP Access Rules are enabled with an allowlist model (allow specific IPs, block all others), health checks targeting the Spectrum application may be blocked, causing endpoints to appear unhealthy. This applies when the Spectrum application is the target of a Cloudflare Health Check or a Load Balancer monitor. To prevent this, add Cloudflare IP addresses ↗︎ to your allowlist. Refer to Spectrum Troubleshooting for details.
Note
Custom rules (WAF rules) do not apply to Spectrum applications configured with the TCP/UDP application type. IP Access Rules are the only supported IP-based filtering mechanism for these applications. Refer to Spectrum Limitations for details.
Argo Smart Routing
Once Argo Smart Routing is enabled for your application, traffic will automatically be routed through the fastest and most reliable network path available. Argo Smart Routing is available for TCP and UDP (beta) applications.
Virtual network origin
Spectrum applications can route origin_direct traffic to a private origin through a Cloudflare Tunnel virtual network. Set virtual_network_id on the application to the ID of the virtual network that the origin IP is routable within. Traffic to the application is delivered through the connector associated with that virtual network — typically a Cloudflare Tunnel or a Cloudflare WAN (formerly Magic WAN) connection.
To create the virtual network and attach a route covering your origin IP, refer to Manage virtual networks and Connect an IP/CIDR.
The following restrictions apply when virtual_network_id is set:
- Application type must be TCP or UDP. HTTP/HTTPS applications do not support virtual network origins.
- The origin must be specified with
origin_direct. Hostname origins (origin_dns) are not supported. origin_directmust contain exactly one address. Multiple addresses are not supported.- The origin port must be a single port. Port ranges are not supported.
- The origin IP must be routable within the specified virtual network. The virtual network must already have a route covering the IP.
- Proxy Protocol is not supported.
proxy_protocolmust be set tooff.
For the validation error codes returned when these constraints are violated, refer to Error codes.
Spectrum virtual network origins are for TCP and UDP traffic only. For HTTP/HTTPS traffic to private origins, use Application Services for Private Origins, which provides WAF, CDN caching, and the full Cloudflare proxy stack.
Edge TLS Termination
Spectrum does not perform protocol upgrade
Spectrum operates at Layer 4 and forwards TCP payloads as-is. If Edge TLS Termination is set to off (Passthrough), Spectrum will not upgrade an HTTP connection to HTTPS, even if your origin listens on port 443. To encrypt traffic between Cloudflare and your origin, enable Edge TLS Termination and set it to Full or Full (Strict).
For example, if a client connects to your Spectrum application on port 8012 using HTTP, and your origin is configured on port 443, the connection to origin will use HTTP on port 443 — not HTTPS — unless Edge TLS Termination is set to Full or Full (Strict).
If you enable Edge TLS Termination for a Spectrum application, Cloudflare will encrypt traffic for the application at the Edge. The Edge TLS Termination toggle applies only to TCP applications.
Spectrum offers three modes of TLS termination: 'Flexible', 'Full', and 'Full (Strict)'.
'Flexible' enables termination of the client connection at the edge, but does not enable TLS from Cloudflare to your origin. Traffic will be sent over an encrypted connection from the client to Cloudflare, but not from Cloudflare to the origin.
'Full' specifies that traffic from Cloudflare to the origin will also be encrypted but without certificate validation. When set to 'Full (Strict)', traffic from Cloudflare to the origin will also be encrypted with strict validation of the origin certificate.
TLS versions supported by Spectrum include TLS 1.1, TLS 1.2, and TLS 1.3.
You can manage this through the Spectrum app at the Cloudflare dashboard, or using the Spectrum API endpoint.
Note
If you have the TLS termination setting configured to off, this means that Spectrum will then proxy connections to the origin without decrypting. The certificate that is presented in this case will be the certificate installed at your origin server, instead of the Edge Certificate from Cloudflare.
Caution
Do not configure a TCP-type Spectrum application's origin to point to another Cloudflare-proxied hostname (for example, origin.example.com.cdn.cloudflare.net). This creates an unsupported double-proxy path that may result in TLS handshake failures at the origin. For TCP applications, a failed TLS handshake to the origin is reported as an origin connection failure (521 or 522), not error 525 — 525 applies to HTTP/HTTPS applications. Use a direct origin IP address or a DNS hostname that resolves to your origin server without passing through Cloudflare's proxy. Refer to Spectrum Troubleshooting for details.
Caution
If you need to control TLS settings, like the minimum TLS version or cipher suites, you need to use an HTTPS application. For TCP applications, default settings will apply. The minimum TLS version will be 1.1 and the cipher suites are:
| OpenSSL Name |
|---|
| AEAD-CHACHA20-POLY1305-SHA256 |
| AEAD-AES128-GCM-SHA256 |
| AEAD-AES256-GCM-SHA384 |
| ECDHE-RSA-CHACHA20-POLY1305 |
| ECDHE-ECDSA-CHACHA20-POLY1305 |
| ECDHE-RSA-AES128-GCM-SHA256 |
| ECDHE-ECDSA-AES128-GCM-SHA256 |
| ECDHE-RSA-AES256-GCM-SHA384 |
| ECDHE-ECDSA-AES256-GCM-SHA384 |
| ECDHE-RSA-AES128-SHA256 |
| ECDHE-RSA-AES128-SHA |
| CDHE-ECDSA-AES128-SHA256 |
| ECDHE-ECDSA-AES128-SHA |
| ECDHE-RSA-AES256-SHA |
| ECDHE-ECDSA-AES256-SHA |
| AES128-GCM-SHA256 |
| AES256-GCM-SHA384 |
| AES128-SHA256 |
| AES128-SHA |
| AES256-SHA |
| ECDHE-RSA-DES-CBC3-SHA |
| DES-CBC3-SHA |
Origin TLS Termination
Below are the cipher suites Cloudflare presents to origins during an SSL/TLS handshake. For cipher suites supported at our edge or presented to browsers and other user agents, refer to Cipher suites.
The cipher suites below are ordered based on how they appear in the ClientHello, communicating our preference to the origin. Customers do not have the ability to modify the ciphers used by Spectrum.
Supported cipher suites by protocol
| OpenSSL Name | TLS 1.1 | TLS 1.2 | TLS 1.3 |
|---|---|---|---|
| AEAD-AES128-GCM-SHA256<sup>1</sup> | ❌ | ❌ | ✅ |
| AEAD-AES256-GCM-SHA384<sup>1</sup> | ❌ | ❌ | ✅ |
| AEAD-CHACHA20-POLY1305-SHA256<sup>1</sup> | ❌ | ❌ | ✅ |
| ECDHE-ECDSA-AES128-GCM-SHA256 | ❌ | ✅ | ❌ |
| ECDHE-RSA-AES128-GCM-SHA256 | ❌ | ✅ | ❌ |
| ECDHE-RSA-AES128-SHA | ✅ | ✅ | ❌ |
| AES128-GCM-SHA256 | ❌ | ✅ | ❌ |
| AES128-SHA | ✅ | ✅ | ❌ |
| AES256-SHA | ✅ | ✅ | ❌ |
Footnotes
- Although TLS 1.3 uses the same cipher suite space as previous versions of TLS, TLS 1.3 cipher suites are defined differently, only specifying the symmetric ciphers, and cannot be used with TLS 1.2. Similarly, TLS 1.2 and lower cipher suites cannot be used with TLS 1.3 (RFC 8446 ↗︎). BoringSSL also hard-codes cipher preferences in this order for TLS 1.3. Refer to TLS 1.3 cipher suites for details. ↩ ↩<sup>2</sup> ↩<sup>3</sup>
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/spectrum/reference/configuration-options/#page","headline":"Configuration options","description":"Configurable options for Spectrum applications, including edge and origin ports and protocols.","url":"https://developers.cloudflare.com/spectrum/reference/configuration-options/","inLanguage":"en","image":"https://developers.cloudflare.com/spectrum/reference/configuration-options/og.png?v=a0f8992ba404a747","dateModified":"2026-10-15","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Error codes returned by the Cloudflare Spectrum API. title: Error codes image: https://developers.cloudflare.com/spectrum/reference/error-codes/og.png?v=59e854c4eb97a8f4
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/spectrum/llms.txt
Use this file to discover all available pages before exploring further.
Docs