「Cloudflare」- 云服务提供者

认识

Cloudflare, Inc. is an American company that provides a range of internet services, including content delivery network services, cybersecurity, DDoS mitigation, wide area network services, reverse proxies, Domain Name Service, ICANN-accredited and domain registration. Cloudflare’s headquarters are in San Francisco, California.

性质

Cloudflare Tunnel
https://www.youtube.com/watch?v=McUeQGgVK9k&t=9

How it works: A daemon runs on a server behind a firewall or NAT and establishes a persistent, outbound-only connection to the Cloudflare network.

Use case: This method is ideal for self-hosting web services or applications from behind a NAT, such as Carrier-grade NAT (CGNAT).

Advantage: It bypasses the need for complex firewall configurations or port forwarding, as the connection is initiated from the server’s inside.

Cloudflare TURN servers
https://developers.cloudflare.com/realtime/turn/what-is-turn/

How it works: When devices need to communicate directly but are both behind NATs, a TURN server relays the traffic between them. The TURN server provides a public IP address and acts as an intermediary, solving the problem of establishing peer-to-peer connections in complex network environments.

Use case: This is commonly used for real-time communication applications, such as video or audio calls using WebRTC.

Advantage: Cloudflare’s global network of anycast servers provides high performance and low latency for this relay service.

Magic NAT

How it works: This is a managed NAT service that provides a predictable and scalable way to handle NAT for on-prem and cloud traffic.

Use case: It simplifies networking across multi-cloud environments and offers global availability, fault tolerance, and scalability without the need for traditional NAT appliances.

Advantage: It provides a predictable pricing structure and eliminates the costs and complexities associated with traditional NAT deployments.

参考

Wikipedia / Cloudflare / https://en.wikipedia.org/wiki/Cloudflare