cross-posted from: https://quokk.au/c/networking/p/1361835/how-to-set-up-cloudflare-tunnels-for-ssh-access
I’m trying to configure a cloudflare tunnel that goes to my home server because it’s behind CGNAT.
If I add a route that goes to my Apache server, it seems to show up correctly.
If I add a route to SSH, it doesn’t seem to work. Trying to run the SSH command to that route will just be stuck forever.
I tried configuring the SSH browser rendering in Cloudflare, but then after login it just gives me an unexpected error occurred.
Anyone who has experience setting something like this up can tell me what I’m doing wrong?


Would it work with a wireguard VPN client on android?
I kinda want to avoid using proprietary apps and such. But not easy to avoid if I have yo get through CGNAT.
Tailscale is open source, built on Wireguard, and the creator of Wireguard is one of their advisors.
Tailscale’s Android client is open source (so is ServerBox)only their coordination server is proprietary, if you’re worried about that then you could self-host Headscale. Or, you could rent a cheap VPS with a public IP and use it as a WireGuard hub. Both your home server and Android device would connect to it, that’ll bypass CGNAT. It would allow you to use the standard WireGuard Android client.
Netbird offers the same functionality, and there’s an open source app for it.
Never heard of netbird. Thanks for bringing it up. Time to read.
I’ll have a look at this. Would this work both for ssh access, and exposing services via a public domain?
Yep! They rolled out the public proxy feature a few months ago I think.