IPv6 compatibility
Last updated Aug 25, 2026 Cloudflare enables IPv6 on all domains without requiring additional configuration or hardware (as long as your host provides IPv6 support).
When IPv6 compatibility is turned on, Cloudflare auto generates AAAA DNS records to allow IPv6 clients to connect. On the other hand, when IPv6 compatibility is turned off, Cloudflare does not automatically generate and advertise AAAA DNS for the zone. Client software will determine whether to use IPv4 or IPv6 to connect to a hostname that supports both methods.
For proxied DNS records that have both an IPv6 and IPv4 origin address, Cloudflare will prefer the IPv4 address when connecting to your origin server.
Availability
| Free | Pro | Business | Enterprise | |
|---|---|---|---|---|
| Availability | Yes | Yes | Yes | Yes |
| Can customize | No | No | No | Yes |
Enable IPv6 compatibility
By default, IPv6 compatibility is turned on for your domain and will apply to all domains and subdomains covered by proxied DNS records.
Note
If you have signed up for Cloudflare through a Cloudflare hosting partner ↗︎ or by use partial setup, IPv6 compatibility does not apply to your apex domain.
Disable IPv6 compatibility
If your origin web server only understands IPv4 formatted IP addresses, non-Enterprise customers should configure Pseudo IPv4.
Alternatively, customers with an Enterprise account can turn off Cloudflare's IPv6 compatibility.
Note
To allow IPv6-only clients to connect to IPv4-only origin web servers, keep IPv6 compatibility enabled and configure Pseudo IPv4.
To turn off IPv6 compatibility in the dashboard:
- In the Cloudflare dashboard, go to the Network page. Go to Network ↗
- Turn off IPv6 Compatibility.
To turn off IPv6 compatibility using the API, send a PATCH request with ipv6 as the setting name in the URI path, and the value parameter set to "off".
Note
Even when IPv6 is turned off, domains may still receive IPv6 traffic (for example, via the Tor network). To completely turn off all IPv6 traffic:
- Turn off Onion Routing.
- Use a WAF custom rule to block
0:0:0:0:0:0:0:0/0using the conditionip.src in {::/0}. - Add
and cf.worker.upstream_zone == ""to the rule above to avoid blocking Workers subrequests. Workers subrequests use IPv6 addresses, and this condition checks that the request does not come from a Worker script. For more information, refer to thecf.worker.upstream_zonefield documentation.
Troubleshoot an IPv6 network issue
Provide the following information to Cloudflare Support if you experience issues with IPv6 connectivity:
- A traceroute that demonstrates the IPv6 connection issues.
- The Cloudflare data center serving your request when the IPv6 issues occur.
- Confirmation of whether disabling IPv6 Compatibility resolves the issue.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/network/ipv6-compatibility/#page","headline":"IPv6 compatibility","description":"Configure IPv6 compatibility for your Cloudflare domain.","url":"https://developers.cloudflare.com/network/ipv6-compatibility/","inLanguage":"en","image":"https://developers.cloudflare.com/network/ipv6-compatibility/og.png?v=7a720c16d5f29d81","dateModified":"2026-08-25","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/"},"keywords":["IPv6"]}
description: Serve content directly through the Tor network with Onion Routing. title: Onion Routing and Tor support image: https://developers.cloudflare.com/network/onion-routing/og.png?v=62d71faf0fac63be
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/network/llms.txt
Use this file to discover all available pages before exploring further.
Docs