Skip to content

Lesson 9 of 9 · 29m

The $50 Box as Infrastructure: Services, Observability, and Operations

Decide which services belong on a router, monitor the resource constraints that matter, and build backup, logging, and maintenance habits that survive failure.

A $50 router can be a VPN concentrator, segmented access point, DHCP authority, DNS filter, lightweight monitoring node, and wake-up service for a home lab. It cannot be everything. The trick is not squeezing services onto the box; it is understanding which services benefit from living at the network edge. Infrastructure is a lifecycle, not a successful first boot.

Put edge services at the edge

Good router-native services are network-critical, lightweight, and useful when the rest of the lab is down:

strong fit      DHCP, DNS filtering, firewall, WireGuard, NTP
reasonable fit  metrics exporter, Wake-on-LAN helper, dynamic DNS
poor fit        databases, CI runners, media indexing, large proxies

A service can be technically possible and operationally wrong. If losing it means losing important state, think hard before colocating it with the device whose reboot also interrupts the Internet.

Measure memory, flash, CPU, and thermal reality

Start with boring local truth:

uptime
free -m
df -h / /overlay /tmp
logread | tail -50

Routers often have 128-512 MB RAM and no meaningful swap. Memory exhaustion may not produce a clean error; processes vanish, wireless reloads, or the kernel kills whatever looks expendable. Export small metrics if useful, but keep long-term storage elsewhere. Keep long-term metrics storage elsewhere. The router can expose measurements; it should not become the observability database.

Logs need a destination and a budget

Local ring logs vanish on reboot. Remote syslog preserves evidence and reduces flash writes:

config system
    option hostname 'edge-router'
    option log_size '128'
    option log_proto 'udp'
    option log_ip '192.168.10.15'
    option log_port '514'

Do not forward every noisy query forever because more data feels safer. Define the incident questions you need to answer: reboot cause, DHCP exhaustion, handshake failure, firewall denies, or upstream instability.

Configuration as recoverable state

The router should be reproducible:

sysupgrade -b /tmp/edge-backup.tar.gz
scp /tmp/edge-backup.tar.gz admin@192.168.10.15:/srv/backups/edge/

Record the device revision, OpenWrt release, image checksum, package list, VLAN map, WireGuard peers, static leases, and recovery instructions. Secrets need stronger handling than a shared text file; if the router is compromised, every key on it is compromised.

Field notes

  • "Random" reboots are often power, heat, memory exhaustion, or unstable wireless drivers.
  • Do not expose LuCI, SSH, metrics, or syslog ingestion to untrusted networks.
  • Test restore, not just backup creation. An unusable tarball is archival decoration.
  • Schedule upgrades; security posture rots quietly on network appliances.
  • Write the network diagram where a future sleepy human can find it. That human may be you.

Was this lesson helpful?

Sign in to rate