46 points fishcharlie 45 minutes ago 22 comments

riazrizvi 31 minutes ago | parent

This has got SNL "fix it" vibes. They are exactly doing what we want here. It takes time.

marcta 29 minutes ago | parent

What's the technical reason behind Cloudflare preferring IPv4 over IPv6 for the origin connection?

bluGill 26 minutes ago | parent

Historically a lot of IPv6 was broken. I'm not sure if that is still true. Many consumer ISPs have great IPv6 support (and have for nearly a decade), but companies often lag behind and may not have IPv4 at all on their network.

cbg0 15 minutes ago | parent

IPv6 route optimization was handled poorly by some ISPs in the past with big differences in latency versus IPv4.

I'd assume given Cloudflare's traffic that they know on average the performance will be better on IPv4 so they default to that.

e63f67dd-065b 28 minutes ago | parent

> I also believe the industry should consider adding functionality so CDNs and other intermediate networks can expose origin TLS connection information alongside their own. This would allow users and network researchers to better understand the encryption state of the entire path and hold website owners accountable for bad security practices. A similar mechanism could expose which IP version is being used to communicate with the origin server.

The whole point of cloudflare is to shield origin servers from the internet, why would I want them to expose more info about origins than they currently do?

fishcharlie 20 minutes ago | parent

Hmm. Good point. I'd personally argue that Cloudflare is mainly meant to hide the origin servers IP address, not the metadata about the connection. DDoS attacks are really what they are protecting with that. So what would be the harm in exposing that metadata?

drakythe 15 minutes ago | parent

That metadata may expose more than we realize. I can't tell you everything it reveals about the origin server or site itself, and until I can, I'd rather err on the side of not revealing that information because a lot of people smarter than me might be able to misuse it.

9dev 8 minutes ago | parent

I can tell you for sure that Cloudflare is also used to protect servers from the absolute barrage of automated attacks out there. And that was the case even before LLMs!

At some point I locked them down completely, all external ports closed; Cloudflare reaches them via a tunnel daemon. Since then, I have peace, and I don’t want that compromised just for some cozy feeling of transparency.

Thaxll 27 minutes ago | parent

"But Cloudflare's connection to the origin server might be entirely unencrypted and rely exclusively on IPv4"

Cloudflare can generate a certificate to connect to the origin server, you should use that.

pamcake 23 minutes ago | parent

> Cloudflare can generate a certificate to connect to the origin server, you should use that.

You should generate origin server cert yourself and not let Cloudflare touch that private key.

This is anyway beside their point that I as a user can't know how it looks between Cloudflare and your origin.

oarsinsync 17 minutes ago | parent

> > > Cloudflare can generate a certificate to connect to the origin server, you should use that.

> You should generate origin server cert yourself and not let Cloudflare touch that private key.

What difference does key ownership make in this scenario? Cloudflare is encrypting the plain text to send to you, because they terminate the end user TLS session themselves.

mobilio 11 minutes ago | parent

Another way to serve HTTP is to run it over CF Tunnels. Since everything is unencrypted (HTTP) but Tunnel is encrypted you shouldn't be hesitated about certificates.

Velocifyer 27 minutes ago | parent

If you have both equivelent IPv4 to origin and IPv6 to origin, IPv4 to origin saves 4 bytes per packet of overhead. (Remember, the internet runs on layer 2 packets of 1500 bytes, after layer 2 overhead)

If you want IPv6 to origin (EG to bypass NAT), then you can still tell it do to that by setting a proxied AAAA and deleting the A.

ipsum2 24 minutes ago | parent

Non click-bait title: Cloudflare prefers IPv4 over IPv6 for internal connections.

TZubiri 18 minutes ago | parent

same thing with those consumer product vpns, if you want to connect with a server in your country and you use a vpn in switzerland, your connection goes encrypted to switzerland, and then unencrypted (the vpn part) all the way back to your country.

some people think of security like an additive consumable, you are hungry you eat a food product, you are sick you apply a medicine, you are insecure you apply a security thing

that said, it does work to deidentify your traffic by effectively pooling your connections and laundering them to appear as coming from switzerland, if that’s your threat model it can work for you, but it works for avoiding the ISP employee knowing where you like to get your porn from (and maybe for criminals that don’t want to make subpoenas more complex), but it does not for any kind of corporate grade security whose threat model os a mitm, not because of the quality of the product, but by its category

TeMPOraL 16 minutes ago | parent

> some people think of security like an additive consumable, you are hungry you eat a food product, you are sick you apply a medicine, you are insecure you apply a security thing

That's how it's ideally supposed to work. TLS is built on that idea.

dktbs 13 minutes ago | parent

In my experience, Cloudflare will pretty loudly encourage users to set up Full strict encryption to origins.

dantillberg 11 minutes ago | parent

> ... they actively prefer IPv4 over IPv6 when making origin server requests, which is particularly disappointing ...

I understand how lack of TLS from Cloudflare to origin server materially impacts privacy/security.

But how does it matter whether Cloudflare uses IPv4 or IPv6 to connect to the origin server? Or if the origin even supports IPv6?

NoahZuniga 9 minutes ago | parent

I haven't been able to figure out whether my origin connection is quantum secure, not for a lack of trying.

huijzer 5 minutes ago | parent

My biggest problem with Cloudflare is that most people do not need DDoS protection, and that choosing Cloudflare lowers uptime when compared to a simple VPS at reliable provider. Like GitHub and other massive providers, it’s just very common for one of the parts of that massive system to go haywire and take the whole thing down for a few hours. Datacenters with VPSes as far as I know don’t often go down.

mannyv 4 minutes ago | parent

I use Fastly, but I also use straight http for origin. Why? Because it’s marginally faster and I don’t really care about the security of my static content. And less processing is always better. And as a bonus I don’t have to worry about my origin showing up in some certificate list scraper.

If I was handling HIPAA data it would be different.