Repository navigation
Home
Welcome to the RadiusStack Wiki! This guide covers everything from deployment to daily administration.
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.
- Docker and Docker Compose installed.
- Ports
1812/udp(Auth),1813/udp(Acct), and80/443(Web UI/API) available on your host.
- Clone the repository to your host machine:
git clone https://github.com/deangoldhill/RadiusStack.git cd RadiusStack - Edit
container_config.envto set your desired default Admin password and database credentials. - Bring the stack online:
docker compose up -d --build
- Access the Web UI at
http://<your-server-ip>. - Login with the default credentials (
admin/admin123or your configured password).
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 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 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) ornever. - If a user breaches their limit, RadiusStack will dynamically reject their Access-Requests until the cycle resets.
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
Secretkey which must be mirrored on the client device.
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 Administratorsto mandate security globally. -
API Keys: Every admin has a unique
X-API-Keythat can be regenerated at any time for programmatic access.
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/.crtand.keyfiles via the drag-and-drop interface. - Changes to certificates automatically trigger a safe restart of the RADIUS container to apply the new keys.
Located in the Settings menu, this robust tool ensures your data survives migrations and disasters.
-
Export Backup: Generates a clean, portable
.jsonfile. 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.
- 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
cURLcommand (complete with your active authentication headers) for immediate Linux CLI testing.