• yxp@lemmy.radio
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    5 hours ago

    I’m willing to move away from cloudflare if only I can expose servers without a global IP and needing to open port on the router side. Do anybody know how to do this?

    Or maybe I should move to somewhere I can setup port-forwarding?

    • qjkxbmwvz@startrek.website
      link
      fedilink
      arrow-up
      6
      ·
      6 hours ago

      VPS+VPN, this is what I do.

      VPS has public IP and runs WireGuard “server”* and a reverse proxy (and fail2ban…). Reverse proxy points to my home computer over the WireGuard link. No open ports on my home router.

      For private facing/LAN-only services I just don’t have an entry in the VPS reverse proxy. DNS on the router points everything to my local server, so if at home I access everything directly. To access internal services remotely requires VPN (i.e., WireGuard to the VPS).

      Works well; I have a tiny free tier VPS but even so, no complaints.

      *Yes I know there are no wg clients or servers, only peers, but it plays a server-likr role.

      • yxp@lemmy.radio
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 hours ago

        I’ve been thinking about this setup but it depends on external server after all…

        • qjkxbmwvz@startrek.website
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          Yes, but you can run multiple VPS, from different providers, simultaneously.

          What I like is that while it does depend on an external provider, it doesn’t depend on a specific external provider. Any VPS with a public IPv4 would work.

      • fristislurper@feddit.nl
        link
        fedilink
        arrow-up
        3
        ·
        4 hours ago

        Tailscale is definitely the most frictionless solution. But you will then rely on tailscale instead of cloudflare, so not ideal. You can also host Headscale so you do not have to rely on them either.

        • CodingCarpenter@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          7 minutes ago

          I’ve never heard of headscale. Can you hook this up to a domain like you can with cloudflare tunnels? That was my main reason for using it. Being able to just hand my family member a domain to point to and see audiobooks

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

        Tailscale is fine, problem is I have to keep my phone connected to the tail network, which drains the battery. I do have a tailscale subnet router running under my network so I can fix things remotely.