Cloudflare servers don't own IPs anymore so how do they connect to the internet?
> <i>However, while anycast works well in the ingress direction, it can't operate on egress. Establishing an outgoing connection from an anycast IP won't work. Consider the response packet. It's likely to be routed back to a wrong place - a data center geographically closest to the sender, not necessarily the source data center!</i><p>Slightly OT question, but why wouldn't this be a problem with ingress, too?<p>E.g. suppose I want to send a request to <a href="https://1.2.3.4" rel="nofollow">https://1.2.3.4</a>. What I don't know is that 1.2.3.4 is an anycast address.<p>So my client sends a SYN packet to 1.2.3.4:443 to open the connection. The packet is routed to data center #1. The data center duly replies with a SYN/ACK packet, which my client answers with an ACK packet.<p>However, due to some bad luck, the ACK packet is routed to data center #2 which is also a destination for the anycast address.<p>Of course, data center #2 doesn't know anything about my connection, so it just drops the ACK or replies with a RST. In the best case, I can eventually resend my ACK and reach the right data center (with multi-second delay), in the worst case, the connection setup will fail.<p>Why does this not happen on ingress, but is a problem for egress?<p>Even if the handshake uses SYN cookies and got through on data center #2, what would keep subsequent packets that I send on that connection from being routed to random data centers that don't know anything about the connection?