Engineering record

AI Systems · 2026

Local LLM Deployment & Hardening

A supervised, restart-safe local inference stack with pinned runtimes, model manifests and network isolation from the public internet.

ollamaopen-webuisystemdhardening

Context

Ad-hoc model serving on a workstation breaks on reboot, drifts in version and accidentally binds to interfaces it should not. The objective was a stack that comes back deterministically and stays private.

Method

Runtime versions pinned and installed from verified artefacts. Model pulls described in a manifest so the deployed set is reproducible. Services run under systemd with restart policies, resource limits and journald logging.

Binding restricted to loopback, with a reverse proxy terminating TLS in front of the UI. Firewall rules deny inbound access to the inference port from anything except the proxy host.

Outcome

Cold boot to serving state became deterministic. Version drift ended. No inference port is reachable from outside the host, and model inventory is auditable from the manifest.

Notes

Authentication and rate limiting sit at the proxy; the inference daemon itself is trusted only on loopback.