Cloudflared is completely useless for IPv4 because when hosting a website or service behind a tunnel, the website or service becomes inaccessible. The issue lies in the fact that the CNAME record created for the tunnel only returns an AAAA record (IPv6).
This leads to the following situation:
In countries or regions where IPv6 is not supported, or with an internet provider that does not offer IPv6 services, your website or service becomes completely unavailable.
As a result, tunnels break the accessibility of your resource since users on IPv4 networks cannot connect. This is a critical issue that makes cloudflared potentially problematic for global services, where IPv4 support is still mandatory.
I am using a CNAME with the “proxied” option enabled, but $tunnel-id.cfargotunnel.com only returns an AAAA record, with no A record provided. This makes the service inaccessible for users on IPv4-only networks. This behavior appears to be a bug in Cloudflare.
I mean what I wrote in the first message. When creating a tunnel and hosting a website behind it, the site becomes inaccessible from IPv4-only networks because the DNS server 1.1.1.1 returns only an AAAA record for CNAME entries like $tunnel-id.cfargotunnel.com.
For example, a visitor on an IPv4-only network tries to open example.com → (CNAME) $tunnel-id.cfargotunnel.com → AAAA record = fail.
The CNAME record is automatically created (with the proxied option enabled) through the Cloudflared dashboard when creating a tunnel, and it is correct.
I have created a test website for you. This test website is not accessible on IPv4-only networks. It is only available on IPv6 networks or within the Cloudflare WARP network.
ospanel.io. 3600 IN NS thea.ns.cloudflare.com.
ospanel.io. 3600 IN NS lennon.ns.cloudflare.com.
;; Received 101 bytes from 65.22.161.17#53(b0.nic.io) in 28 ms
test.ospanel.io. 300 IN A 172.66.42.229
test.ospanel.io. 300 IN A 172.66.41.27
;; Received 76 bytes from 2a06:98c1:50::ac40:22f7#53(thea.ns.cloudflare.com) in 3 ms
And here a curl:
curl -s https://test.ospanel.io --ipv4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Page</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
background-color: #f4f4f9;
color: #333;
}
h1 {
margin-top: 20%;
font-size: 2.5rem;
}
p {
font-size: 1.2rem;
color: #555;
}
</style>
</head>
<body>
<h1>Welcome to My Simple Page</h1>
<p>This is a basic HTML file.</p>
</body>
</html>