homelab

2 articles tagged homelab.

Keeping Docker containers off your LAN

Hardened Docker containers (no published ports, capabilities dropped) can still reach the whole LAN, because bridge NAT lets them connect anywhere the host can. The fix on OrbStack/macOS is a helper container that reapplies DOCKER-USER egress rules every 15s. The rules block private ranges, OrbStack's 0.250.250.0/24 host range and all non-bridge IPv6, allow DNS to OrbStack's resolver, and stay above the ACCEPT OrbStack inserts on restart. Lesson: test effect, not existence.

docker

Serving Sites from Your Dev Server

Side projects shouldn’t cost more than they have users. Here’s how I moved mine off a $75/mo hosting bill and onto Docker on my dev server: a Cloudflare Tunnel with no open ports, a trusted CF-Connecting-IP header, JVM memory sized from container limits, a deploy script that tests itself before it touches production, and encrypted off-site backups to R2. It’s not high availability. It’s a home server. But the bill is zero.

boxlang