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?

  • Flatearth_Habeebi@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    30 minutes ago

    If all you want is remote SSH access, you could use Tailscale. Install it on your server and the device you’re connecting from, then SSH using the server’s Tailscale IP. It works behind CGNAT without port forwarding.

    Edit: and if you want to even access it on the phone then I highly recommend the app ServerBox. It’s on both Android and iOS and works like a charm through tailscale.

    • AloneDownUnder@quokk.auOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 minutes ago

      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.

    • AloneDownUnder@quokk.auOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 minutes ago

      Yeah. You can host static pages and workers, and make tunnels.

      I’m just using everything free though. Quite a bit of options without paying