The OS
MarlinOS is FreeBSD with a kernel config, a CAN networking stack, the WAKE detection daemons, and a set of platform YAML files. The host stays small; package mass lives in the jails, picked per workload.
Base system
We track FreeBSD-CURRENT and ship a custom kernel config plus a short list of additions. No fork: MarlinOS installs on top of the FreeBSD pkgbase stream.
- Hardened base
- GENERIC minus debug, ZFS-only root with boot-environment rollback, PF composed from platform + overlay. No extra userland attack surface on the host beyond what the platform YAML declares.
- MARLINOS kernel config
- Derived from
GENERICwith debug options removed (include "std.nodebug"), plus the NetCAN device modules built in. Built for both architectures. - pkgbase delivery
- Base system and kernel ship as
pkg-installable sets frompkg.marlinos.io. Upgrades arepkg upgrade; rollback is a ZFS boot environment. - Dual architecture, native builds
- Both
FreeBSD:16:amd64andFreeBSD:16:aarch64are built on native Poudriere runners. - ZFS root, boot environments
- ZFS is the only supported root filesystem. Each base upgrade produces a new boot environment; a failed upgrade rolls back from the loader.
What MarlinOS adds
Two delivery channels: pkgbase for the kernel and base system (MARLINOS kernel config + NetCAN userland), ports for everything else. Linux gets the ports layer only, with naming and coverage in Linux support below.
| Component | Where | What it does |
|---|---|---|
| MARLINOS kernel + NetCAN | pkgbase | GENERIC minus debug, plus NetCAN (can, can_raw, can_nmea2000, vcan, ahc0512). See NetCAN. |
| CAN userland | pkgbase | canconfig, candump, cansend, slcand, n2kdump. Ship with the base system. |
| Platforms | YAML | Seven host roles (hosting, nas, identity, wake-edge, soc-console, vpn-hub, build-worker). See Platforms. |
| Backup helpers | sanoid, syncoid | Consistent snapshots, with engine helpers for MariaDB and PostgreSQL. |
| rsyslog | rsyslog | FreeBSD’s rsyslog rebuilt with our SIMD TurboVM patches against liblognorm, plus mmenrich, mmsigma, mmwake, mmclassify, imclassify, and immesh. |
| WAKE | libwake, wakeweb | libwake is the scoring library the rsyslog modules link. wakeweb is the console: it reads the events and decisions the edges write to ClickHouse and runs no detection. The fourteen detectors are imclassify, on their own thread, in the rsyslog package. mmclassify is the per-message action; no event plugin is registered. See WAKE. |
| host-defaults | host-defaults | Canonical /usr/local/etc/* for common tools. |
hosting platform
pulls in PHP 8.4, MariaDB clients, Redis, Nextcloud, WordPress,
Dolibarr, certbot, and Stalwart, one jail at a time.
Linux support
No image, no MARLINOS kernel, no jails: on Linux the ports layer drops
onto whatever base install is already there. amd64 only, on the
dev channel. The package repo is on
pkg.marlinos.io.
Package names differ only where they would collide with a distro
package: rsyslog, wake, and libwake keep
those names. See Get it for the repo setup.
Primitives
Each platform picks the primitives it needs. None of these is universal.
- Bastille jails
- Used by multi-service platforms:
hosting(5 jails) andidentity(itskeycloak-dbjail). Synthesized server-side from the platform YAML.thin/thick/linux/cloneare supported;vnetis intentionally not. The others (nas,wake-edge,vpn-hub,soc-console,build-worker) run services directly on the host. - ZFS datasets with sanoid policy
- Every FreeBSD platform uses ZFS root. Datasets are declared in the platform YAML with their Sanoid retention inline; Dump helpers hand off to engine-specific helpers (MariaDB, PostgreSQL) for consistent snapshots;
syncoidships them elsewhere when needed. - PF + dual-stack IPv6
- FreeBSD platforms compose PF rules from platform + overlay, with synthesized RDR anchors per jail. ULA IPv6 with NPTv6 across a WireGuard fabric where one is used.
- WireGuard transport
- Optional per host.
nasandhostingon a LAN typically leave it off.vpn-hubis the hub.
Build channels
| Channel | Path on pkg.marlinos.io | Use |
|---|---|---|
| current | FreeBSD:16:<arch>-current | Release channel. Cut from master. |
| dev | FreeBSD:16:<arch>-dev | Tracking channel. Cut from dev. Use for testing. |
| pkgbase | FreeBSD:16:<arch>/base_current | FreeBSD base + MARLINOS kernel as pkg sets. |