Every public request to one of my sites used to go through a Cloudflare tunnel. I had a cloudflared deployment in my cluster, some routing rules, and everything just worked. And it was free! But that bugged me. TANSTAAFL right? The whole point of selfhosting is to not rely on big cloud company, and there are few bigger than Cloudflare. And Cloudflare’s tunnels decrypt every single packet, so they see everything you do. I really don’t like that.

So I’ve replaced Cloudflare tunnels with Erwan Leboucher’s towonel, a selfhosted tunnel implementation. I still have my DNS on Cloudflare, but no data is moving through them any more.

  • K3CAN@lemmy.radio
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 hours ago

    Oh, maybe I misunderstood? It sounded like he didn’t understand what advantage a “tunnel” could provide.

    If your server is behind CGNAT, you need a TURN-style “tunnel” to allow incoming connections. If you have your own remote server with a public IP, then you can absolutely use that and create the tunnel using wireguard (or openvpn, ssh, etc).

    I just mentioned CF in my blog post because it’s probably the most popular solution.

    The point is, if you have CGNAT, you need to create that “tunnel” somehow if you want to allow incoming connections.