Scenario Cookbook
中文版本:场景实战手册
The Vendor Integration Guide is a reference card — it tells you which attributes ToughRADIUS sends to / parses for a given vendor. This cookbook goes one step further: it is organized around real operational scenarios and translates a business need, end to end, into “server config + device config + verification + troubleshooting”.
The five-part shape of every scenario
So you can follow along and debug effectively, every scenario uses the same structure:
- Need / scenario — the problem in business language, no protocol detail.
- On the ToughRADIUS side — exactly what to configure in the admin UI, and which attributes are actually emitted after a successful auth, produced by which piece of code.
- On the device side — reference configuration for the NAS/router.
- Verification — how to confirm it really works (radtest, device commands, admin UI).
- Troubleshooting — the most common traps for that scenario, as “symptom → locate → fix”.
Reading conventions
- Every ToughRADIUS-side claim is anchored to code: emitted attributes come
from the enhancers in
internal/radiusd/plugins/auth/enhancers/; the accept/reject decisions come from the checkers ininternal/radiusd/plugins/auth/checkers/. This describes the system’s real behaviour, not an aspiration. - Device-side config is always a reference example: command syntax varies by model and OS version — defer to the vendor docs and your actual firmware.
- CoA / Disconnect port is 3799 (RFC 5176). The
1700you often see online is a client-side local port, not the destination port this system uses. - Rates are stored in Kbps in the rate profile (the UI labels the unit). See Vendor Integration Guide · Rate units for the per-vendor conversion.
Available cookbooks
- MikroTik RouterOS — PPPoE broadband ISP speed tiers, Hotspot + MAC authentication, CoA / forced disconnect and FUP.
- Huawei BRAS / NetEngine — broadband speed tiers with peak rate and AAA domain, line anti-fraud (MAC + VLAN binding) with dual-stack IPv6, CoA / forced disconnect and FUP.
- H3C, ZTE, iKuai & Cisco — the per-vendor diff (emitted rate attributes, unit multipliers, MAC / VLAN parsing) for the remaining mainstream vendors; the scenario mechanics follow the two flagship cookbooks.
Planned (roadmap M13.8 later batches): additional standard-attribute / Wi-Fi-controller scenarios as needed. For attribute-level details of any vendor, see the Vendor Integration Guide.
Related chapters
- Quick Start — install, first login,
radtestverification. - Vendor Integration Guide — per-vendor attribute reference.
- Admin UI Manual — users, rate profiles, online sessions, CoA.
- FAQ — cross-scenario troubleshooting Q&A.