Safely exposing services to the Internet
2026-06-17 12:02 UTC
Replies (6)
-
@chrash0@lemmy.world 2026-06-17 14:31
i have a VPS offsite to act as a gateway. it’s just a small piece of a machine somewhere in my region that routes requests to my home network via Tailscale. this has a few benefits: i don’t have to worry about my ISP changing my IP. my VPS has more stable IPs. i don’t have to expose ports directly to the internet. Tailscale authenticates the connection. plus i have Caddy routing the whole system. i use subdomains like foundry.chrash.net, jellyfin.chrash.net, etc. another benefit of Tailscale to point out is that you don’t need local IPs to be static either; Tailscale will allow you to access your machines by hostname or another static IP. this helps to decouple your local topology from your service network.
-
@early_riser@lemmy.world 2026-06-17 15:23
Since you’re just sharing things within a small group, I think it’s safe to give out your IP or a domain pointing to it. However, you need to put your services behind a DMZ. Make a separate VLAN on your network and put the Pis behind it. Make sure traffic from your private LAN can enter the DMZ but nothing from the DMZ can go to your LAN unless it’s return traffic for a session started in your LAN. If a machine in your DMZ is compromised, it shouldn’t affect your LAN.
-
@wltr@discuss.tchncs.de 2026-06-17 14:40
I’d suggest you to investigate either Tailscale or similar solutions. I’m using Tailscale, and it’s really easy to set up. It can automatically connect to the VPN when you access their resource, and the internet works as well. So technically, they can be connected all the time. That’s much safer than the alternative of just opening a port, and dealing with things like CGNAT. The alternatives to Tailscale I know about are Headscale (which you need self-hosting), Netbird, WireGuard. At least, but there are more. And search for tunnels as well. You could utilise Cloudflare Tunnel, but I wouldn’t go that way. I’d suggest testing waters with Tailscale as it’s the easiest, and tweak from there. They have a YouTube channel which helps at starting, I found it just recently. (I use them for a year or two now.)
-
@dil@piefed.zip 2026-06-18 18:31
Make a new gmail or something everyone can access and then have them login through tailscale, its automati after doing it once, then they copy your devices ip, go http:ip:port eveytime and if your app is exposed over local networks it should work. Just safer than actually exposing over the web. Downside is shared gmail account ofc.
-
@phoenixz@lemmy.ca 2026-06-18 15:24
Make sure everything is behind a VPN, like tailscale. Then you setup your router to only forward the tailscale ports, and that will be the only possible attack vector As long as tailscale is safe, you should be safe
-
@hirihit640@sh.itjust.works 2026-06-17 12:21
I recommend proxmox. One VM for sensitive private data and backups, one VM for stuff exposed to the internet