I've looked into Cloudflare's "Magic Transit" and I do understand the basic concept of it. However, I do not understand why it would ever work that Cloudflare could return traffic to you (via e.g. IPSec) when every traffic should get routed to Cloudflare itself.
So Cloudflare announces your IP via BGP, say 1.2.3.0/24, and so everybody (every AS) would start sending traffic to Cloudflare instead of sending it to your ISP. Now all the magic stuff happens there (DDoS-protection, whatever) and then the "clean" traffic gets sent back to you via some tunnel (e.g. IPSec) - but the route to your IP-range still points to Cloudflare, so it wouldn't work. So I thought it might work if everybody else except your ISP would host that route from Cloudflare, but that means if someone else is having the same ISP as you, he would directly send the traffic to you (within the same ISP network) instead of sending it to Cloudflare.
So what's exactly the "trick" behind it, that Cloudflare can send traffic to you (as 1.2.3.0/24) but everyone else gets routed to Cloudflare?
Cloudflare here is just an example, of course it will work with other providers/solutions too. Thanks very much!