visitor@semih-os:~$cat /projects/homelab.md

0x03in progress

homelab

linuxdebiandockernetworkingsecurity

progress

updated:

4 / 5 stages done
  1. networking and access (Tailscale, Caddy) — done
  2. communication and project services — done
  3. monitoring and backups — done
  4. Oda: AI sandbox — done
  5. local LLM assistant← now

Hardware and principles

Debian 13 on a gaming laptop (i7-9750H, 32 GB RAM, GTX 1660 Ti). The rules I set from the start:

  • No publicly exposed ports; access only through Tailscale, with ACLs.
  • The Docker socket is given to no container.
  • Day-to-day work isn’t done as root.
  • Secrets are never written to any file in plain text.

Services

  • Networking: Tailscale (ACL), ufw, a single Caddy gateway for all services
  • Communication: Prosody (XMPP) + coturn
  • Project management: Plane
  • Monitoring: Glances, Beszel
  • Backups: restic; a safe-shutdown timer for power outages

The setups are reproducible with ~50 bash scripts.

“Oda” — a sandbox for AI agents

I wanted to run code-writing AI agents on the server, but I didn’t want them touching the rest of it. That’s what Oda (Turkish for “room”) is for:

  • Outbound internet access only through a Squid proxy server
  • A separate user identity (uid separation)
  • A read-only root filesystem

It passed 11 of 11 isolation tests that try out escape scenarios.

The hole I found

During the audit I noticed that SSH was also reachable from the Docker networks — a compromised container could have reached the host’s SSH. I closed that off.

Where I am now

I’m working on a personal assistant that runs on a local LLM.