this post was submitted on 07 Sep 2024
80 points (80.3% liked)

Selfhosted

40645 readers
341 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

This is a decent writeup on applying "Zero Tust" principles to a home lab using mostly open source tools. I'm not the author, but thought it was worth sharing.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 3 months ago

I don't meet all of the items here (my homelab setup is still a WIP), but here's basically what I have:

  1. Cloudflare manages my domain and DNS, but nothing else; I only use them because they're cheaper than my last registrar (Namecheap)
  2. VPS at Hetzner acts as my edge - HAProxy forwards packets based on SNI over my WireGuard VPN to the relevant device on my network
  3. I use Caddy on each device to handle TLS, and all services are inside docker with zero directly exposed ports
  4. each service only has access to the files and other containers it needs to accomplish the task
  5. my router is configured w/ static DNS, so all requests to services go to my domain name over TLS, but they don't hit the WAN if I'm on my LAN

I don't have continuous monitoring and alerting, mostly because the only people using my network are me, my SO, and my kids. I am planning on adding some alerting though, and I especially need to configure SMART reporting (had it configured at one time). So when I do that, I'll add some dashboards for my various other services as well.

Some things I plan to add:

  • backup and restore - I plan to use Backblaze, my main hurdle is that I don't want to backup my large media files (movies and whatnot), and I haven't put in the work to configure a service to handle backups; this is a top priority for me
  • VLANs to separate devices - I want one network w/o internet access for my IP cameras, one for devices that need access to specific external sites (e.g. my smart TV, or a separate media device once I switch to a dumb TV), one for privileged services (e.g. my NAS, which will talk to multiple VLANs), and one for guests
  • continuous monitoring and alerting - each device would report to a service on my VPS (or maybe a separate VPS)
  • home automation system - my focus has been on replacing external services, and I don't use an automation system yet, so I haven't gotten to this; but I'm planning on using HomeAssistant as I roll out my other home monitoring stuff

So I'm probably halfway to what the OP has laid out. I don't do this type of thing at work, and I don't share anything outside my network, so I'm in no hurry. However, I do need to handle backups and SMART monitoring on my NAS ASAP, since those are the last glaring gaps in my setup.