Supported platforms

routerd is designed to be cross-OS, but each platform uses a different host integration model. This page lists the concrete OS surfaces routerd uses on each platform, so you can review generated files and runtime ownership before applying a router configuration.

Ubuntu Server is the primary, most exercised target. FreeBSD and NixOS are second-tier: some feature areas are groundwork or have narrower native evidence. Read the relevant section before assuming the same YAML has identical host behavior on every OS.

Linux (Ubuntu / Debian)

Linux with systemd is the primary platform. Release installs land under /usr/local by default. Install the Debian package from the release with sudo apt install ./routerd-linux-amd64.deb. It depends on ca-certificates, iproute2, nftables, and dnsmasq-base.

routerd uses the following OS surfaces on Linux:

Even on Ubuntu, routerd does not assume packages are pre-installed. For ongoing declarative management, declare dependencies with the Package resource. The reference list:

Category Packages
Runtime dnsmasq-base, nftables, conntrack, iproute2, keepalived, ppp, wireguard-tools, tailscale, tailscale-archive-keyring, strongswan-swanctl, radvd
Diagnostics dnsutils, iputils-ping, iputils-tracepath, tcpdump, traceroute, net-tools
OS control procps, systemd, kmod

The Debian package alone owns routerd.service, copied unchanged from contrib/systemd/routerd.service. The daemon runs as root without a capability bounding list and never rewrites or restarts its own unit. routerd render systemd-service has been removed. Live ISO boot ordering stays in routerd.service.d/10-live-setup.conf.

DHCPv4, DHCPv6-PD, PPPoE, RA and mobility ARP observers use generated per-resource services, like BGP and DNS helpers. routerd starts and stops clients through the service manager after resolving When and HA role conditions; clients are not enabled independently at boot. Selecting an external DHCPv6-PD client does not start the built-in client. Client units have no BindsTo, PartOf or Requires dependency on routerd.service, so restarting routerd does not stop them. FreeBSD uses the existing rc.d renderer and native service operations instead of a Runner process supervisor. For client resources, a true When permits startup or updates; an indeterminate condition leaves an existing unit untouched without starting it. False conditions or removal from configuration remove the unit. Disabled PPPoE, external DHCPv6-PD selection and HA standby still stop the built-in clients.

The package supplies routerd.slice; the fixed daemon unit and all generated routerd services belong to it. Maintenance scripts stop only routerd.service and routerd.slice during upgrades. On removal, prerm also disables routerd.service, selects /etc/systemd/system/*.service files bearing # routerd-managed-service: v1 with grep -l, runs systemctl disable --now for each, then deletes the generated files. systemctl manages enablement links; postrm only reloads systemd. These service operations and removal cleanup run only when systemd is available. Operational/ISO drop-ins, configuration, databases and keys remain.

When dnsmasq manages DHCP, it starts routerd-dhcp-fingerprint-watcher.service. The watcher follows the dnsmasq journal with --journal-unit routerd-dnsmasq.service and writes --db /var/lib/routerd/dhcp-fingerprints.db, which Web Console reads. Its stop/restart follows dnsmasq. It has no lease-file or ARP input flags; fingerprint collection needs DHCP logDHCP: true.

Ubuntu 26.04 LTS (resolute) has been validated with the same Linux data-plane renderers used by Ubuntu 24.04 for managed dnsmasq, nftables, DHCPv6-PD, delegated LAN IPv6 address derivation, and the control API. The host bootstrap did need one OS-level networking adjustment: on interfaces that routerd owns for DHCPv6-PD or LAN RA/DHCPv6 service, configure installer netplan/systemd-networkd so the OS does not run its own DHCPv6 client. Otherwise systemd-networkd can bind UDP port 546 before routerd-dhcpv6-client.

For Ubuntu 26.04 router lab hosts, keep only the management interface on OS DHCP and make routerd-owned WAN/LAN interfaces link-local-only at the OS layer:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      dhcp4: false
      dhcp6: false
      accept-ra: false
      link-local: [ipv6]
      optional: true
    ens19:
      dhcp4: false
      dhcp6: false
      accept-ra: false
      link-local: [ipv6]
      optional: true
    ens20:
      dhcp4: true
      dhcp6: false
      accept-ra: false
      link-local: [ipv6]
      optional: true

For WAN links that still need the RA-learned IPv6 default route, declare the WAN interface and DHCPv6 / RA resources. routerd derives a systemd-networkd drop-in with IPv6AcceptRA=yes and [IPv6AcceptRA] DHCPv6Client=no, so RA is accepted while the OS DHCPv6 client stays disabled.

FreeBSD

FreeBSD uses the same routerd resource model as Ubuntu, mapped onto FreeBSD host mechanisms. The DHCPv6-PD client runs under daemon(8) and reliably keeps a lease bound. routerd maps resources to FreeBSD-native rc.conf, rc.d, pf, mpd5, ifconfig, and dnsmasq surfaces instead of using Linux tools. Place the files from the FreeBSD release archive and install ports packages with pkg, as described in FreeBSD getting started.

Implemented:

The ARP and RA observer daemons capture through the FreeBSD base-system tcpdump/libpcap BPF path; proactive ARP writes retain a separate direct-BPF descriptor. The provisioned native CI exercises both daemons in a disposable VNET and requires the expected ARP observation and rogue-RA events. The tagged native DPI backend supports the FreeBSD ports ndpi 5.0 ABI and is verified by the same native gate with a TLS/SNI classification self-test.

ClientPolicy is supported on FreeBSD with an address-backed pf approximation. Each IPv4 guest or isolated classification references a DHCPv4Reservation; an IPv6 guest identity must instead be declared explicitly as classification[].ipv6Addresses. For a FreeBSD-targeted policy, those stable address fields are the identity contract: MAC, OUI, hostname, and DHCP fingerprint match selectors are rejected instead of being silently ignored. routerd never infers an IPv6 identity from an IPv4 reservation, MAC address, hostname, OUI, or DHCP fingerprint. The FreeBSD renderer uses those literal IPv6 addresses for family-safe inet6 guest-egress deny rules. This is not Linux-equivalent MAC-based isolation: pf does not provide the Ethernet-source matching model used by nftables in the routed filter path. Privacy or unlisted IPv6 addresses are therefore outside this FreeBSD ClientPolicy slice and need separate network segmentation.

FreeBSD does not use Linux-specific nftables, conntrack, or iproute2. The Package examples declare FreeBSD-native replacements: pf and pflog0 from the base system, mpd5 for PPPoE, ifconfig gif for DS-Lite, dnsmasq for LAN DHCP/RA service, and ports packages for WireGuard, Tailscale, and strongSwan.

Category Packages
Runtime dnsmasq, wireguard-tools, tailscale, strongswan, mpd5
Optional native DPI ndpi
Diagnostics bind-tools
Base system ifconfig, sysctl, service, sysrc, netstat, sockstat, tcpdump, ping, traceroute

routerd render freebsd --out-dir <dir> produces:

routerctl apply installs the generated pf.conf, validates it with pfctl -nf, applies it with pfctl -f, validates dnsmasq with dnsmasq --test, starts generated rc.d scripts with service <name> onestart, and applies dynamic DS-Lite tunnels with ifconfig gif when static rc.conf rendering is not enough. Use routerd render freebsd for review and offline validation before pointing real traffic at a FreeBSD host.

Current release qualification is deliberately narrower than the rendered feature list. FreeBSD explicitly rejects an EgressRoutePolicy resource whose spec.family is ipv6, because the certified PF route-to slice is IPv4 static route host only. Package install/upgrade/uninstall, owned cleanup, and foreign-service preservation are certified on native amd64 and arm64. The following additional slices have amd64-only native evidence: TunnelInterface gif/GRE dataplane and lifecycle, owned cleanup, and foreign-interface preservation; credential-free Tailscale external-auth boundary, rollback, and foreign preservation; and CARP failover/recovery, owned cleanup, and foreign preservation across three independent FreeBSD VMs. Tailscale authenticated enrollment is not claimed. FreeBSD 14.3 GRE keys control outbound encapsulation; the kernel does not enforce inbound key matching.

Platform parity backlog

These are the current known level differences to track when comparing Ubuntu and FreeBSD:

Area Current gap Backlog
CI/runtime coverage Pull requests compile FreeBSD amd64/arm64 binaries. Provisioned FreeBSD 14.3 native evidence covers the full unfiltered go test ./..., live routerd smoke, ARP/RA observers, native nDPI, amd64/arm64 package lifecycle, and amd64 TunnelInterface/Tailscale/CARP slices described above. Retained VM115 evidence additionally covers route lookup, BFD, and supported PF dataplane slices. Do not generalize the amd64 TunnelInterface, Tailscale, or CARP evidence to arm64; authenticated Tailscale enrollment remains outside this release claim.
FreeBSD feature limitations ClientPolicy uses DHCPv4 reservations for IPv4 and explicit classification[].ipv6Addresses for IPv6 pf rules. It cannot match MAC addresses or infer IPv6 identity from DHCPv4. Keep the explicit-address and MAC/L2 limitation visible; require separate segmentation for unlisted or privacy IPv6 addresses (#849).
IPv6 policy routing The certified PF route-to slice is IPv4 static route host source affinity only. An EgressRoutePolicy with spec.family: ipv6 is explicitly rejected on FreeBSD; it is an approved product boundary, not implemented parity (#904).
Package bootstrap Ubuntu and FreeBSD can install packages imperatively. Keep schema, validation, installer package lists, examples, and generated docs in sync for apt and pkg.

Implementation guideline for OS abstraction

When you add a new OS-specific behaviour, do not branch on runtime.GOOS in business logic. Use the pkg/platform layer (platform.Features) or Go build tags to keep the boundaries explicit. Failing fast at validation or planning is preferred over surprising the operator at runtime on an unsupported OS.