I want to expose my services publicly on my own domain name, how would you guys do that?

I have seen people using Cloudflare, but I don’t want to use Cloudflare out of principle. I have also seen stuff on caddy and frp that I’ve done some rough researching.

What do you guys do?

  • spork@pawb.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 days ago

    I rent a cheap VPS with iptables routing ports through a wireguard tunnel to a peer on the local network that acts as a firewall and reverse proxy, this gives you a static IP with a local control plane and no ddns.

    • HelloRoot@lemy.lol
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 days ago

      Same but nftables and also crowdsec.

      Also I had some trouble with the wireguard tunnel dropping lots of packets, which resulted in my services not loading 50% of the time. I did a lot of suggestions at the same time so I’m not sure which one fixed it but here is a list in case anybody has similar troubles:

      • lowering MTU
      • routing ipv6 through the tunnel as well
      • rewriting nftables rule order

      (will update after work, notes are at home)

        • HelloRoot@lemy.lol
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          16 hours ago

          I’m still having trouble with it and I’m currently traveling. My analysis so far points to my vps provider being at fault.

          I tried doing long term diagnostics, which effectively pinged through the tunnel every 5s and that make it work constantly and perfectly. So maybe some energy saving sleep stuff, which ends up breaking the tunnel?