Skip to content
deangoldhill edited this page Mar 25, 2026 · 40 revisions

RadiusStack Documentation

Welcome to the RadiusStack Wiki! This guide covers everything from deployment to daily administration.

Table of Contents

  1. Overview
  2. Installation & Deployment
  3. Features & Guides

Overview

RadiusStack is a powerful, self-contained AAA (Authentication, Authorization, and Accounting) platform built on FreeRADIUS 3, MariaDB, and a custom Node.js API backend. It removes the steep learning curve traditionally associated with FreeRADIUS by providing an intuitive Web UI and a fully documented REST API.

It supports EAP (PEAP + TTLS) with PAP, CHAP and MSCHAPV2 out of the box, and is pre-configured to copy reply attributes from the inner to outer packet for NAS visibility, e.g dynamic VLAN assignment.

The system relies on Docker containers, ensuring clean isolation and high portability across any host machine.

Installation & Deployment

Prerequisites

  • Docker and Docker Compose installed.
  • Ports 1812/udp (Auth), 1813/udp (Acct), and 80/443 (Web UI/API) available on your host.

Quick Start

  1. Clone the repository to your host machine:
    git clone https://github.com/deangoldhill/RadiusStack.git
    cd RadiusStack
  2. Edit container_config.env to set your desired passwords and token key.
  3. Bring the stack online:
    docker compose --env-file container_config.env up -d --build
  4. Access the Web UI at http://<your-server-ip>.
  5. Login with the default credentials (admin / admin).

Features & Guides

Managing Users & TOTP

The Users module allows you to create network credentials, assign profiles, and usage plans.

TOTP (Multi-Factor Authentication):

  • RadiusStack supports adding TOTP (e.g., Google Authenticator) to RADIUS users on a per user basis (TOTP only supports PAP authentication).
  • To Enable: Toggle the TOTP switch next to a user. The UI will instantly generate a one-time registration code and a secure registration URL.
  • Registration: Provide the user with the URL and code. They will log in via the web portal using their standard RADIUS password + the one-time code to receive their scannable QR Code.
  • Authentication: Once registered, the user authenticates by appending their 6-digit TOTP code directly to the end of their normal password (e.g., password123456).

Profiles & Custom Attributes

Profiles act as permission groups for your users. Instead of configuring attributes for every single user, you create a Profile and assign users to it.

  • VLAN assignment: specify a VLAN ID. All supporting attributes for dynamic VLAN assignment will automatically be added.
  • Reply Attributes: You can inject any standard FreeRADIUS dictionary attribute (e.g., Filter-Id, acct-interim-interval, Vendor-Specific). Select form a list of commonly used attributes or add additional attributes to the list via the settings page.
  • NAS Restrictions: You can optionally lock a profile so its users can only authenticate from a list of specific NAS IP addresses.

Usage Plans

Usage plans enforce strict data and or time limits on user sessions.

  • Data/Time Caps: Define limits such as "10 GB data" or "24 hours connection time".
  • Reset Cycles: Set plans to reset automatically (daily, monthly) or never.
  • If a user breaches their limit, RadiusStack will dynamically reject their Access-Requests until the cycle resets.
  • Manually reset usage cycle in the users page.

NAS Clients

The NAS (Network Access Server) module defines which network devices are permitted to query RadiusStack.

  • Add switches, firewalls, or Wi-Fi access points by IP address.
  • Set a strong, shared Secret key which must be mirrored on the client device.
  • FreeRadius service must be restarted when adding/modifying NAS clients, via them settings page.

Administrators & 2FA

The Admins tab manages who has access to the RadiusStack Web UI and REST API.

  • Granular Permissions: Restrict admins to specific modules (e.g., allow an admin to manage Users, but not profiles and Settings) Grant read-only or read-write permission.
  • 2FA Enforcement: You can toggle 2FA on a per-admin basis. Alternatively, navigate to Settings and check Enforce 2FA for all Administrators to mandate security globally. When an admin with 2FA enabled logs in for the first time, they will be forced to register 2FA.
  • API Keys: Every admin has a unique X-API-Key that can be regenerated at any time for programmatic access. *Note - when an API key is regenerated, the webui session will be terminated because the webui uses the API key to communicate with the backend API.

Certificates (EAP/SSL)

For advanced 802.1X enterprise network deployments (like WPA2-Enterprise), FreeRADIUS requires TLS certificates. *Upon deployment, a 10 year certificate will be generated.

  • Auto-Generate: Navigate to the Settings tab and fill out the form to have the backend automatically generate a self-signed root CA and Server certificate.
  • CA cert download: to avoid the trust prompt on the client device, download and install the root CA certificate
  • Custom certificate Upload: You can upload your own pre-signed private key and server certificate.
  • Changes to certificates automatically trigger a safe restart of the RADIUS container to apply the new keys.

Database Backup & Restore

Located in the Settings page. Backup is exported in JSON format with two options

  • Full Backup: Generates a full database backup including all objects, settings and accounting / authenticaton / audit logs. *Note - full backups may fail to restore if imported to a different version as the database schema may be different.
  • Object Backup: Generates a partial backup of users, profiles, plans and NAS clients. and optionally include accounting / authenticaton / audit logs. This contains most of the data needed to restore the server.
  • The partial backup should safely import to different versions because the structure of these tables should never change.
  • Backup Restore: Upload a previously generated backup. RadiusStack intelligently maps the columns, ignoring obsolete schemas to prevent database crashes when upgrading to newer server versions.

Reporting and analyitcs

  • Dashboard: The dashboard show most recent active sessions authenticaiton logs. Click an active session to view full details of the session.
  • Auth Log: View Authentication logs with search capability. This log will also show authentication attempts of unknown users.
  • **Accounting: View accounting records both active and closed. Filter by username, NAS client and date/time range. Click an accounting record to view full details. *You can also purge accounting records for the specified filter scope.
  • Audit Log: The Audit Log tracks every action taken by Administrators (creations, deletions, setting changes). It shows the origin (webUI, API, System), result (success, failed, denied) and action attempted. *Filter by date range, result or search for action keywords.
  • **Container logs: All containers are configured to redirect service logs to the container logs. View the container logs from the settings page.

API schema and tester

  • ** API schema:** The API Docs page lists the entire API schema
  • Interactive API Tester: Click one of the API endpoints to pre-populate the tester with the correct URL and modifiable sample data. Optionally generate a curl command to test the API call from a different host. *The API tester automatically uses the API key for the logged in administrator

Clone this wiki locally