My current internet provider does not allow me to opt out of cgnat. So I don’t have a public ip to connect to my home server from outside.

What is a good way to still connect to my home server?

Do I need to setup some VPN like headscale on cloudflare and use that to acces my network?

What if I want to host a website and make it availavle publicly?

  • BlueÆther@no.lastname.nz
    link
    fedilink
    English
    arrow-up
    15
    ·
    19 days ago

    when my ISP turned on CGNAT I phoned them up and complained that they broke all my selfhosted services, got a free static ip4 address out of it

    YMMV

    • AloneDownUnder@quokk.auOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      19 days ago

      Yeah. Thats what I did with my previous provider. But this provider said all their ips are used up and they have a waitlist to opt out. And they dont offer static ips.

      Really weird

    • AloneDownUnder@quokk.auOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      19 days ago

      Thats what I was planning to do before I realised that all the network providers here dont support ipv6.

      I dont understand why. (╥﹏╥)

      • deadbeef79000@lemmy.nz
        link
        fedilink
        English
        arrow-up
        2
        ·
        19 days ago

        Hurricane Electric offer free IPv6 tunnels over IPv4 for exactly that situation. I used them until I moved to an ISP that did do IPv6.

        I think they also offer a free online introduction course for IPv6.

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    19 days ago

    I run a tiny little netbird VPS in the cloud. A node at home makes an outbound connection to the cloud, and I connect to the cloud from my phone. Traffic transits that network to reach my LAN.

    • AloneDownUnder@quokk.auOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      19 days ago

      Arw you using the free version?

      I suppose I can try this out, but that wouldn’t be suitable for public access to my server, right? Just for myself to have a secure connection.

      • frongt@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        19 days ago

        Yes, the free version.

        You can probably publish the services via the cloud server too. Personally I always recommend against publishing stuff to the public, especially if you run it out of your LAN.

        • AloneDownUnder@quokk.auOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          19 days ago

          Yeah, I dont really want to publish anything publicly. Ssh access would be good, but I can do that with VPN tunnel because it would be from my own devices.

          But sometimes I need access to my server with gui via other devices, like public computers or somebody elses laptop.

          I was thinking to setup a reverse proxy and point it to apache guacamole on the server. Then I can do remote desktop via any browser with 2fa from my phone.

  • stratself@lemdro.id
    link
    fedilink
    English
    arrow-up
    2
    ·
    17 days ago

    Tailscale or Netbird is a good approach. They both have a SaaS control plane where you can sign devices up, and you’ll connect to your home server via its VPN-internal IP.

    Note that headscale or netbird cannot be hosted via Cloudflare Tunnels, as they require websockets support and/or UDP for STUN. You may just wanna rent a VPS for that.

    For hosting a website publicly, you may employ reverse proxies on the Tailscale/Netbird nodes like my setup

      • stratself@lemdro.id
        link
        fedilink
        English
        arrow-up
        1
        ·
        17 days ago

        For exposing stuff publicly? Yeah that’s possible in the free tier. Just not for things that use websockets (like headscale as I mentioned) or non-HTTP things (XMPP server, TURN for calls etc)

  • nonentity@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    19 days ago

    Do they allow you to ‘rent’ a static v4 address?
    Do you have v6 available and configured?

    I personally use WireGuard links to my home and VPS nodes, it’s a bit involved to setup, but you could do the same with Tailscale if you’re not up for the admin overhead.

    As for hosting stuff for others to access, I’d put the advertised public interface on a VPS and locate it there, or tunnel it back to your home network if that’s not practical.

    • AloneDownUnder@quokk.auOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 days ago

      Apparently not. I think I really need to change provider.

      Would it be suitable to use a reverse proxy from cloudflare for the public access to a single port? Or would that still be insecure?

      • nonentity@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        19 days ago

        I’ve always rolled my own, and I’ve never touched Cloudflare, but from what I understand of what they offer, it should be possible, and largely equivalent from a security perspective.

        I prefer to not be dependent on systems I don’t or can’t control or jettison, but that requires a level of commitment to continual vigilance and learning few can justify.

        • AloneDownUnder@quokk.auOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          19 days ago

          I’m with you on that. Prefer to host things myself. I was planning to setup wireguard, but because im behind CGNAT, I cant just use my server as the entrypoint for the VPN. I still need some proxy or server to tunnel into my home network.

          How do you configure yours? Do you just have a public ip that connects straight to your home server?