Skip to content
deangoldhill edited this page Mar 24, 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.

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 default Admin password and database credentials.
  3. Bring the stack online:
    docker compose up -d --build
  4. Access the Web UI at http://<your-server-ip>.
  5. Login with the default credentials (admin / admin123 or your configured password).

Features & Guides

Managing Users & TOTP

The Users module allows you to create network credentials, assign profiles, and attach billing limits.

TOTP (Multi-Factor Authentication):

  • RadiusStack supports adding TOTP (e.g., Google Authenticator) to standard RADIUS users via PAP authentication.
  • To Enable: Toggle the TOTP switch next to a user. The UI will instantly generate a one-time setup 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 to the network 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.

  • Custom Attributes: You can inject any standard FreeRADIUS dictionary attribute (e.g., Filter-Id, Mikrotik-Rate-Limit).
  • NAS Restrictions: You can optionally lock a profile so its users can only authenticate from specific NAS IP addresses.
  • Settings Configuration: If you need specific vendor attributes to appear in the Profile dropdown, you can define them in the Settings > Custom Profile Attributes text box.

Billing Plans

Billing plans enforce strict data 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.

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.

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 hide the Settings and Certificates tabs).
  • 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.
  • API Keys: Every admin has a unique X-API-Key that can be regenerated at any time for programmatic access.

Certificates (EAP/SSL)

For advanced 802.1X enterprise network deployments (like WPA2-Enterprise), FreeRADIUS requires TLS certificates.

  • Auto-Generate: Navigate to the Certificates tab and fill out the forms to have the backend automatically generate a self-signed root CA and Server certificate.
  • Custom Uploads: You can upload your own pre-signed .pem / .crt and .key files via the drag-and-drop interface.
  • Changes to certificates automatically trigger a safe restart of the RADIUS container to apply the new keys.

Database Backup & Restore

Located in the Settings menu, this robust tool ensures your data survives migrations and disasters.

  • Export Backup: Generates a clean, portable .json file. You can choose to export the entire database or exclude heavy accounting logs for a faster, smaller payload.
  • Import Restore: Upload a previously generated backup. RadiusStack intelligently maps the columns, ignoring obsolete schemas to prevent database crashes when upgrading to newer server versions.

Live Logging & API Docs

  • Auth Logs & Audit Trails: View real-time authentication success/failures directly in the UI. The Audit Log tracks every action taken by Administrators (creations, deletions, setting changes).
  • Interactive API Tester: Navigate to API Docs to view a full catalog of the platform's REST endpoints.
  • Clicking any endpoint populates an interactive JSON tester and generates a live, copy-pasteable cURL command (complete with your active authentication headers) for immediate Linux CLI testing.

Clone this wiki locally