Skip to content

Installation

LiMDM consists of limdm-server (console and agent API, PostgreSQL) and limdm-agent on every device. This page covers the server. Devices: Agent installation.

 Browser ── HTTPS ──► Caddy :443 ──► limdm-server 127.0.0.1:8080 (console) ─┐
                                                                             ├─ PostgreSQL
 limdm-agent ── mTLS, TLS 1.3, pinned device CA ──► limdm-server :8444 ─────┘

Two ports are public:

  • 443 for the console, served by Caddy with an automatic Let's Encrypt certificate.
  • 8444 for agents. This port must reach limdm-server directly. Never put a TLS terminating proxy or load balancer in front of it: agents authenticate with client certificates and pin the server's device CA.

Port 80 is needed for the ACME HTTP challenge.

Supported systems

Component Systems Packages Init
Server Debian, Ubuntu limdm-server_<version>_linux_<arch>.deb systemd
Server Fedora, CentOS Stream, RHEL and rebuilds (Rocky, Alma), openSUSE Leap, openSUSE Tumbleweed, SLES limdm-server_<version>_linux_<arch>.rpm systemd
Server any Linux with Docker container image ghcr.io/maltekiefer/limdm-server Docker Compose
Server other Linux (Arch, Alpine, ...) limdm-server_<version>_linux_<arch>.tar.gz (binary, unit file, server.env.example), or the image systemd unit included; write your own for other init systems
Agent Debian 12+, Ubuntu 22.04+, Fedora, CentOS Stream 9+, RHEL rebuilds 9+, openSUSE Leap 16 and Tumbleweed, SLES and SLED 16, Arch, Alpine 3.17+ deb, rpm, .pkg.tar.zst, .apk systemd; OpenRC on Alpine

Agents need OpenSSL 3 (the installer verifies the release signature with it): systems with OpenSSL 1.1.1 as default, such as Ubuntu 20.04, Debian 11, RHEL 8 and its rebuilds, openSUSE Leap 15 and SLES 15, are not supported. Details: Supported distributions.

Architectures: amd64 and arm64. Feature differences per device family: Supported distributions.

Ports

Port Listener Reachable from
443 Caddy (or another reverse proxy), console users, devices (/install.sh), identity provider (SCIM)
80 Caddy, ACME HTTP challenge and redirect internet
8444 limdm-server, agent API (LIMDM_AGENT_LISTEN), mTLS devices, directly or through TCP passthrough
8080 limdm-server, console without TLS (LIMDM_LISTEN default) loopback only
8443 limdm-server, console with LIMDM_TLS_CERT (default then) the load balancer or users
5432 PostgreSQL the server only; prefer the unix socket

Outbound: HTTPS to the OIDC provider, Google Directory API (if used), GitHub (LIMDM_RELEASE_REPO, agent releases), the geolocation service (only if turned on), notification targets, and the syslog target (LIMDM_SYSLOG).

Files

Server (package):

Path Content
/usr/bin/limdm-server binary
/usr/lib/systemd/system/limdm-server.service unit, runs as limdm, sandboxed, sets LIMDM_CA_DIR=/var/lib/limdm-server/ca
/usr/lib/sysusers.d/limdm-server.conf creates the system user limdm
/etc/limdm-server/server.env environment (root:limdm, 0640, kept on upgrades)
/var/lib/limdm-server/ state directory (0700, limdm)
/var/lib/limdm-server/ca/ CA directory: CA certificates and keys, command key, keys.json, audit-keys, audit-keyed-from
/var/lib/limdm-server/agent-releases/ verified agent packages (LIMDM_RELEASE_DIR; the packaged server.env sets /var/lib/limdm-server/releases)

The container keeps the same state under the volume /var/lib/limdm-server and runs as user 65532.

Devices (agent package): binaries limdm-agent, limdm (command line for users) and limdm-desktop; units limdm-agent.service, limdm-watchdog.service and limdm-watchdog.timer, the user unit limdm-desktop.service and XDG autostart, or /etc/init.d/limdm-agent with OpenRC; configuration in /etc/limdm (0700), state in /var/lib/limdm (0700). Details: Files on the device.

Security model in short

Asset Protection What you must do
Console HTTPS (Caddy), OIDC or password with TOTP, CSRF and origin checks, strict CSP, HSTS, account lockout after 5 failures, per address rate limit keep local login as break glass only, add fail2ban or CrowdSec
Agent API (8444) mTLS with TLS 1.3, client certificates from the private device CA, server CA pinned by agents never terminate TLS in front of it, firewall it like any public service
Device CA (/var/lib/limdm-server/ca) 0600, owned by limdm, systemd sandbox back it up encrypted and offline; whoever has the key can impersonate the server
LIMDM_SESSION_KEY derives every key for stored secrets and sessions 32 random bytes, root only file, backed up apart from the database
Database unix socket and peer authentication, or sslmode=verify-full no TCP listener on public interfaces
Audit log append only, keyed hash chain (HMAC-SHA256), verified daily ship it to your SIEM with LIMDM_SYSLOG (Syslog)

Default stance: deny everything, open 80, 443, 8444 and SSH (preferably only from your admin network), run the server as an unprivileged sandboxed service, keep the host patched.

Requirements

  • Linux host with a public DNS name, for example mdm.example.com.
  • PostgreSQL 15 or newer. Local via unix socket, or remote with sslmode=verify-full (the server refuses remote connections without certificate verification).
  • Outbound HTTPS for the OIDC provider and, if used, the Google Directory API.

One instance is enough for most fleets. For several instances behind a load balancer see High availability.