Configuration Options

Spectrum is a global TCP Proxy running on Cloudflare’s edge nodes. It does not terminate the connection. Instead it passes through the packets to the backend server.

IP Addresses

When a Spectrum application is created, it is assigned a unique IPv4 and IPv6 address. These addresses are not static, they may change over time. The best way to look up what the current addresses are is using DNS. The DNS name of the Spectrum application will always return the IP’s currently dedicated to the application.

These addresses are Anycasted from all Cloudflare data centers, with the exception of data centers in China.


Spectrum can act as a TCP load balancer in front of an SMTP server. Spectrum will not act as an intermediary mail server. Instead, it will simply pass 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/EHLO message.
  • 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.


Cloudflare supports all TCP ports.

IP Firewall

If the IP Firewall toggle is enabled for a Spectrum application, then Cloudflare will respect the IP Access Rules created in for that domain. Cloudflare only respects rules created for specific IP addresses or IP blocks for Spectrum applications, and does not yet have support for Country or ASN based rules. Spectrum will also only respect rules created with the actions ‘whitelist’ or ‘block’.

Edge TLS Termination

Spectrum offers four modes of TLS termination: ‘Passthrough’, ‘Flexible’, ‘Full’, and ‘Full (Strict)’.

‘Passthrough’ disables TLS termination at the edge. This is the required setting if the underlying traffic is not encrypted with TLS. If the connection is encrypted, ‘Passthrough’ allows traffic to flow from client to origin using the TLS session negotiated directly with the origin.

‘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 traffic can still be sent through Spectrum with TLS set to ‘Passthrough’. Cloudflare will not terminate it. Instead, it will act as a pure passthrough.

Spectrum supports versions TLS 1.1, TLS 1.2, and TLS 1.3.