BYOIP
When creating a Spectrum application, Cloudflare normally assigns an arbitrary IP from Cloudflare’s IP pool to your application. If you want to be explicit in your network setup or use your own IP addresses, BYOIP with Spectrum allows you to do just that.
BYOIP stands for Bring Your Own IP. If you own an IP prefix you can migrate it to Cloudflare. After migration, Cloudflare broadcasts your IP prefix and traffic is routed to the global Cloudflare network. However, without configuration, Cloudflare will not know how to handle this traffic. The last step is to add Spectrum applications for all applications that you wish to protect with the IP addresses you want associated with them.
The smallest prefixes that Cloudflare currently supports is /24 for IPv4 and /48 for IPv6.
BYOIP does not come standard with Spectrum. To enable it, contact your account team.
To use an IP, it must be assigned to a Spectrum app to create the appropriate A (IPv4) or AAAA (IPv6) records. This is done by specifying one or more IP addresses when creating an application through the API. Any change to the application’s properties also needs to be done via API. In addition, you must update the DNS "type"
field to "ADDRESS"
to create a Spectrum app using BYOIP.
In the example below, the application routes traffic through Cloudflare’s HTTP pipeline, including WAF, Workers and CDN functionality.
Replace {zone_id}
, <EMAIL>
, and <API_KEY>
with your actual values.