Jump to
↵select↑↓navigateescclose

nixos-router documentation

Guides for installing and running a nixos-router, from the first install and the Cockpit web UI to DNS filtering, Suricata, ingress, WireGuard and working on the project itself.

On this page

nixos-router is a NixOS module and a Cockpit web UI that turn a multi-NIC machine into a small-business router. Start with the install guide, then pick the feature you are setting up. Every guide shows the steps in the web UI, the settings they write, how the feature works on the router, and the limits to know before you rely on it.

Where to start

New here? Get started explains how Cockpit, the settings file and NixOS generations fit together, and Install a router takes you from a bare machine to a working router.

The guides

SectionWhat it covers
Get startedWhat the router is, how to install it, the web UI, the settings file, and upgrades.
NetworkingWAN, LAN, guest network and VLANs, and the host registry the other features build on.
Access policiesDNS filtering policies per device, group, subnet or network; block page, directory groups and reports.
Threat protectionSuricata IDS and IPS: turning it on, tuning rules from events, and reading the logs.
Dynamic DNSCloudflare A and AAAA records for the router and your devices.
IngressPort forwards, the reverse proxy with Let's Encrypt certificates, and Cloudflare Tunnel.
WireGuardSite-to-site VPN between offices, other WireGuard peers, and remote access.
ReferenceCloudflare API tokens, and every port and service on the router.
DevelopWorking on nixos-router itself: checks, the Cockpit plugin, settings migrations and these docs.