🌐 Language / Ngôn ngữ: 🇬🇧 English | 🇻🇳 Tiếng Việt
Note
The same tac_plus-ng can now also answer RADIUS (UDP 1812/1813) for devices that have no TACACS+, such as MikroTik RouterOS. It is off by default. See RADIUS and the 0.7.0 release notes, including Upgrading from 0.6.9.
Important
The dashboard, the API, Swagger and the MCP endpoint now share one URL.
dashboard.<domain> and api.<domain> no longer route.
VITE_API_URLmust be empty, and the frontend image must be rebuilt — it is baked in at build time.FRONTEND_HOSTmust name the single URL; it drives CORS, passkeys, OAuth and email links.- Existing passkeys break if you change the host. Keep them by setting
DOMAINto your current dashboard host. - OAuth redirect URIs must be re-registered with Google / Keycloak.
- MCP clients must be re-pointed to
https://<domain>/mcp/; existing API keys stay valid.
Full checklist: Upgrading to 0.6.0.
tacacs-ng-ui is a next-generation full-stack web application designed to simplify the administration and management of tac_plus-ng, the modern event-driven TACACS+ daemon.
Historically, managing TACACS+ servers required manually editing complex configuration files, leading to human errors, auditing challenges, and security loopholes. tacacs-ng-ui bridges this gap by providing:
- Dynamic Web Management: Manage TACACS+ users, groups, profiles, hosts, and authorization policies through a responsive, premium UI built with React and Chakra UI.
- Versioned Config Engine: Compile and validate configuration snapshots directly from the UI. Features side-by-side diff comparisons, error syntax checking, and safe version rollbacks.
- Observability & Log Auditing: Monitor authentication, authorization, and accounting (AAA) stats in real-time, complete with a timeline view of auditing logs and user command histories.
- Automated Threat Alerting: Real-time alert rule evaluations paired with Machine Learning (IsolationForest) anomaly detection to secure infrastructure against abnormal activities.
- AI-Assisted Configuration over MCP: Describe what you want in plain language and let an LLM assistant create the entities and check the result with the real
tac_plus-ngparser — the easiest way to configure tacacs-ng-ui. - RADIUS for RADIUS-only devices: Optionally serve RADIUS from the same tac_plus-ng, with the same users, groups, profiles and rulesets, for devices such as MikroTik RouterOS that can't use TACACS+.
The quickest way to set up or change a TACACS+ configuration is to talk to it. tacacs-ng-ui ships a built-in Model Context Protocol (MCP) server, so an assistant such as Claude Code, Claude Desktop, Gemini, Cursor, Windsurf or Antigravity can read your hosts, users, groups, profiles and rulesets, draft new ones, and syntax-check the result with the same tac_plus-ng -P parser the daemon uses — all from a chat.
It is on by default and needs no extra container or port: MCP lives on the same URL as the UI, at https://<your-domain>/mcp/.
Important
The assistant can never deploy. No MCP tool saves a config file, activates one, or reloads the daemon. Whatever the assistant creates waits in the database until you open TACACS Configs, review the diff, and press Generate then Activate. The page flags pending changes, so nothing goes live silently.
-
Create an API key. Sign in as a superuser, open User Settings → API Keys → Create API Key, and pick an access level:
- Read-only — the assistant can look and validate, but changes nothing. Start here.
- Read-write — it can also create, update and delete entities. Use this to let it do the typing.
Copy the key (it is shown once). The dialog also gives you a ready-to-paste command.
-
Connect your assistant. For Claude Code:
claude mcp add --transport http tacacs-ng https://<your-domain>/mcp/ \ --header "Authorization: Bearer tngk_..."
Other clients (Claude Desktop, Gemini, Cursor, Windsurf, Antigravity) are covered in the MCP guide.
-
Ask for what you want. For example:
- "List the hosts and groups I have, and tell me what a new Juniper router would need."
- "Create a host template
branch-templatewith its key, then addbranch-01…branch-20that inherit from it." - "Add user
alicetotacacs_read_only, expiring 2026-12-31." - "Members of
adminsget priv-lvl 15 on the core switches only; deny everyone else. Validate it." - "What would change if I regenerated the config now?"
-
Review and deploy in the UI. Open TACACS Configs, check the diff against the active config, then Generate and Activate.
In Claude Code the author_tacacs_config prompt walks the assistant through the safe order — read the syntax reference, survey existing entities, draft, validate, iterate.
| Situation | Use |
|---|---|
| Everyday management — add a host, user or group, tweak a simple profile or ruleset, read logs and stats | The web UI |
| Many similar entities at once, bulk changes, or "what would this change?" questions | MCP |
Anything beyond the UI's basic forms — nested if, && / ||, regex, complex user or device filters |
Configuration Options (raw tac_plus-ng text), which an assistant can draft and syntax-check for you |
The web UI deliberately stays with the basic case; the advanced cases are written as raw tac_plus-ng text in a Configuration Option and validated before you activate.
- Scoped, revocable keys. Read-only by default, optional expiry, optional source-IP allowlist, soft revoke, and every use is in the audit log (MCP changes are tagged
mcp/api-key:<key name>). - Secrets are redacted from everything the assistant sees (
key = "***REDACTED***"); unredacted output is a separate opt-in for superuser keys and is audited. - Keep real shared secrets out of your prompts. Whatever you type goes to your LLM provider, so let the assistant create a host without its key and set the key in the UI.
Full guide: docs/en/mcp-server.md
- Configure with an AI Assistant (MCP)
- Key Features
- Live Demo
- Supported Vendors
- Device Configuration Examples
- RADIUS for RADIUS-only devices
- Technology Stack
- How To Use It
- Deployment
- Configuration
- High Availability (HA)
- MCP Server
- User Guide
- Development
- Screenshots
- Implemented Features
- Release Notes
- License
- Intuitive Web Interface: Manage TACACS+ users, groups, and policies through a clean and responsive UI built with React and Chakra UI. Every management table has a unified premium layout with live search, sort, and pagination.
- TACACS+ Server: Utilizes tac_plus-ng as the backend TACACS+ server, a modern and actively maintained implementation.
- RADIUS for RADIUS-only devices: Optional (off by default). The same tac_plus-ng also answers RADIUS on UDP 1812/1813 for devices that have no TACACS+, such as MikroTik RouterOS, with the same users, groups, profiles and rulesets. Profiles return vendor attributes (
MikroTik-Group,Cisco-AVPair,Fortinet-Access-Profile, …) from a built-in dictionary, and RADIUS logins flow into the same statistics, alerts and SIEM feed. See docs/en/radius.md. - Versioned Config Management: Generate, preview, and activate TACACS+ configuration snapshots — each version is stored, can be rolled back, and compared with a built-in diff viewer. Supports inline editing of the config file directly in the browser.
- Multi-Vendor Seed Data: First startup automatically creates ready-to-use groups (
tacacs_super_user,tacacs_read_only), users (user_admin,user_read_only), and authorization profiles covering Cisco, Arista, Huawei (VRP + H3C), Juniper, Palo Alto, and Fortinet — no manual setup required to test with real devices. - Interactive Field Guides: Every Add/Edit dialog includes a contextual Field Guide panel explaining each field, accepted values, and examples — no need to consult external docs while configuring.
- Observability Dashboard: Today's log summary (auth/authz/acct counts), config entity overview cards, recent user activity, and Top 5 & trend charts with Last 7 Days / Last 30 Days / Date Range filter. Click a series in a chart's legend to see it alone. Service and automation accounts can be excluded from the statistics, while their events stay in the logs, alerting and SIEM.
- Structured Log Events Viewer: Browse TACACS+ log events with date picker, type/result/username filters, clickable username drill-down, command column with tooltips, port/TTY column, and a detail drawer with interactive session timeline for auditing full command sequences.
- SIEM Integration: Forward TACACS+ log events in real-time via HTTP webhook (Splunk HEC format) and/or syslog (UDP/TCP).
- Global Search: Every management table (Hosts, Users, Groups, Profiles, Rulesets, and more) has a live search box with debounced, case-insensitive, server-side filtering.
- Comprehensive Audit Logging: Every UI action is recorded with actor, IP, entity snapshot (before/after), and timestamp. Superuser-only table with search, date-range filter, and CSV export.
- Real-Time Alert Rules: Define rules (auth failure spikes, new usernames/IPs, repeated rejects from a single source IP, config changes, activations) with configurable windows, thresholds, cooldowns, and severity. Notifications dispatched via Telegram, Slack, Discord, Teams, Google Chat, Email, or generic webhook — evaluated every 5 minutes from live log files, no daily cron dependency. Webhook channels also receive the alert as structured JSON (
data.ip,data.fail_count,data.triggered_ips) so downstream automation can act on it without parsing text. - ML Anomaly Detection: IsolationForest model scores every user daily across four behavioral features (avg/stddev auth failures, unique IPs, deny ratio). Results classified normal/low/medium/high/critical and displayed in a dedicated UI page.
- High Availability: Run one primary with N standby nodes. Config changes fan out to every enabled peer, standbys follow via PostgreSQL streaming replication, and peers are added, disabled, or removed from the HA UI without restarting a service. Promotion to primary is a single click.
- MCP Server for LLM Clients: A Model Context Protocol endpoint lets Claude Desktop, Claude Code, Antigravity, Gemini, Cursor or Windsurf inspect TACACS+ entities, render config previews and diffs, and syntax-check config text with the real
tac_plus-ng -Pparser — and, with a read-write key, create, update and delete entities. It can never deploy: no tool saves a config file, activates one, or reloads the daemon, so changes reach the daemon only after a human presses Generate and Activate in the UI. On by default (can be turned off), authenticated with scoped and revocable API keys, and secrets are redacted from every response. - Scoped API Keys: Machine credentials managed under User Settings. Two access levels (read-only or read-write), an independent opt-in for unredacted secrets, expiry, one-time plaintext display, soft revoke, and full audit logging. Each key can also be locked to an allowlist of source IPs/CIDRs, editable at any time without reissuing the key.
- Multi-Factor & Directory Auth: Google OAuth, Keycloak OIDC, Microsoft (personal accounts and Entra ID), native LDAP / Active Directory / FreeIPA / OpenLDAP (with multi-server failover), and Passkeys (WebAuthn) in addition to email/password.
- Secure by Design: PCI DSS-compliant password policy, JWT authentication, and email-based password recovery.
- Integrated Tooling: Traefik reverse proxy, automatic API documentation via Swagger UI, and end-to-end testing with Playwright.
Video Demo: English - Demo tacacs-ng-ui - Setup for Juniper Devices
Video Tiếng Việt:tacacs-ng-ui - Demo - Cấu hình chứng thực tập trung với thiết bị Juniper
Telegram Group: https://t.me/+v1eAXg-BhotlODY1
Reddit Community: https://www.reddit.com/r/tacacs_ng_ui/
You can sign up and use this tacacs server to test with your simulator lab.
- Dashboard: https://tacacs.9ping.cloud
- IP TACACS Server: Ping tacacs.9ping.cloud to get IP TACACS Server.
ping tacacs.9ping.cloud - TACACS key:
change_this
Demo Credentials:
- Admin User
- Username:
user_admin - Password:
change_this
- Username:
- Read-Only User
- Username:
user_read_only - Password:
change_this
- Username:
Verified on real devices by the maintainer and the community. Full reports, device configs and gotchas are in the Compatibility List. Tested a device not listed here? Please add a reply there.
| Vendor | Platform / OS | Tested models | OS / firmware | Guide |
|---|---|---|---|---|
| Juniper | Junos | SRX300, MX204, MX960, MX304 | 21.2R3-S8, 21.4R3, 24.4R2-S4 | Junos |
| Juniper | Junos OS Evolved | PTX10001-36MR, ACX7100-32C | 24.4R2-S4-EVO | Junos |
| Cisco | IOS-XE | Catalyst 9300, ISR 4331 | 17.9.3 | Cisco IOS-XE |
| Cisco | IOS XR | NCS-55A2 | 7.0.2 | Community report |
| Arista | EOS | vEOS | 4.28F | Arista EOS |
| Huawei | VRP (CloudEngine) | CloudEngine 6800 | VRP 8.1 | VRP virtual |
| Huawei | VRP (Campus S-Series) | S6720-54C-EI-48S, S6720-50L-HI-48S | VRP 5.170 V200R010C00 → V200R019C10 | VRP physical |
| Ciena | 6500 Packet-Optical (TL1 / Site Manager) | 2/7/14-slot shelves, TIDc consolidated nodes | Release 16.91 | Ciena 6500 |
| Datacom | DmOS | DM4170, DM4250, DM4270, DM4360, DM4380, DM4770, DM4780 | DmOS 5.8.0 → 12.6.0 | Community report |
| Datacom | DmSwitch (legacy) | DM4100 / DM4000 series | 15.2.2 → 15.2.18 | Community report |
| MikroTik | RouterOS (RADIUS, MS-CHAPv2) | CHR | 7.25.1 | MikroTik RouterOS |
Warning
Cisco IOS XR, Datacom DmOS and Datacom DmSwitch authorize every command as service = shell with the command line in cmd. A profile that only does if (service == shell) { set priv-lvl = 1 ; permit } lets read-only users run any command, configure included. Separate session start (cmd == "") from commands, as shown in the community report.
Tip
Tested Devices: Looking for a list of compatible devices tested by the community or want to report a device you've tested? Visit our GitHub Discussions Compatibility List.
Below are quick configuration examples for common network vendors. For detailed step-by-step integration guides including user/group mapping, AAA schemes, and full reference configuration dumps, see:
- Juniper Junos: docs/en/config-examples/juniper.md
- Cisco IOS/XE: docs/en/config-examples/cisco.md
- Arista EOS: docs/en/config-examples/arista.md
- Huawei VRP (Virtual / CloudEngine): docs/en/config-examples/huawei.md
- Huawei VRP (Physical Campus S-Series): docs/en/config-examples/huawei-physical.md
- Ciena 6500 (Packet-Optical, TL1 / Site Manager): docs/en/config-examples/ciena-6500.md
Show Config Commands
# Example Juniper configuration for TACACS+
# 1. Define local user classes for TACACS+ users
set system login class read-only-local idle-timeout 15
set system login class read-only-local permissions view
set system login class read-only-local permissions view-configuration
set system login class super-user-local idle-timeout 15
set system login class super-user-local permissions all
set system login user tacacs_read_only uid 2001
set system login user tacacs_read_only class read-only-local
set system login user tacacs_super_user uid 2002
set system login user tacacs_super_user class super-user-local
# 2. Set authentication order to check TACACS+ first, then local password
set system authentication-order tacplus
set system authentication-order password
# 3. Configure the TACACS+ server details
set system tacplus-server <IP_TACACS_SERVER> port 49
set system tacplus-server <IP_TACACS_SERVER> secret <TACACS_SECRET_KEY>
set system tacplus-server <IP_TACACS_SERVER> source-address <DEVICE_SOURCE_IP>
# 4. Configure accounting to send logs to the TACACS+ server
set system accounting events login
set system accounting events change-log
set system accounting events interactive-commands
set system accounting destination tacplus server <IP_TACACS_SERVER> secret <TACACS_SECRET_KEY>
set system accounting destination tacplus server <IP_TACACS_SERVER> source-address <DEVICE_SOURCE_IP>Full guide: docs/en/config-examples/cisco.md
Show Config Commands
! 1. Enable AAA
aaa new-model
!
! 2. Define the TACACS+ server (key must match the Host secret in tacacs-ng-ui)
tacacs server TACACS-NG-1
address ipv4 <IP_TACACS_SERVER>
key 0 <TACACS_SECRET_KEY>
timeout 5
!
! 3. Server group; send from the IP registered as the Host
aaa group server tacacs+ TACACS-GROUP
server name TACACS-NG-1
ip tacacs source-interface GigabitEthernet0/0
! Catalyst 9000 management port: ip vrf forwarding Mgmt-vrf
!
! 4. TACACS+ first, local only if no server answers
aaa authentication login default group TACACS-GROUP local
aaa authorization exec default group TACACS-GROUP local
aaa accounting exec default start-stop group TACACS-GROUP
aaa accounting commands 1 default start-stop group TACACS-GROUP
aaa accounting commands 15 default start-stop group TACACS-GROUP
!
! 5. Apply to VTY lines (SSH/Telnet)
line vty 0 4
login authentication default
authorization exec default
Full guide: docs/en/config-examples/arista.md
Show Config Commands
! 1. Define the TACACS+ server (key must match the Host secret in tacacs-ng-ui)
tacacs-server host <IP_TACACS_SERVER> key 0 <TACACS_SECRET_KEY>
tacacs-server timeout 5
!
! 2. Server group
aaa group server tacacs+ TACACS_GROUP
server <IP_TACACS_SERVER>
!
! 3. TACACS+ first, local only if no server answers
aaa authentication login default group TACACS_GROUP local
aaa authorization exec default group TACACS_GROUP local
aaa authorization commands all default group TACACS_GROUP local
aaa accounting exec default start-stop group TACACS_GROUP
aaa accounting commands all default start-stop group TACACS_GROUP
!
! 4. Send from the IP registered as the Host
ip tacacs source-interface Management1
Warning
With command authorization on, every command reaches the server as service = shell. The seeded profiles permit any service = shell request, so they do not restrict commands. Keep a second session open while applying, and see the full guides for a profile that limits read-only users to show commands.
- ⚡ FastAPI for the Python backend API.
- 🧰 SQLModel for the Python SQL database interactions (ORM).
- 🔍 Pydantic, used by FastAPI, for the data validation and settings management.
- 💾 PostgreSQL as the SQL database.
- 🚀 React for the frontend.
- 💃 Using TypeScript, hooks, Vite, and other parts of a modern frontend stack.
- 🎨 Chakra UI for the frontend components.
- 🤖 An automatically generated frontend client.
- 🧪 Playwright for End-to-End testing.
- 🦇 Dark mode support.
- 🐋 Docker Compose for development and production.
- 🔒 Secure password hashing by default.
- 🔑 JWT (JSON Web Token) authentication.
- 📫 Email based password recovery.
- ✅ Tests with Pytest.
- 📞 Traefik as a reverse proxy / load balancer.
- 🚢 Deployment instructions using Docker Compose, including how to set up a frontend Traefik proxy to handle automatic HTTPS certificates.
- 🏭 CI (continuous integration) and CD (continuous deployment) based on GitHub Actions.
For a full walkthrough of all features, see the User Guide (bilingual English / Tiếng Việt).
git clone https://github.com/thangphan205/tacacs-ng-ui
cd tacacs-ng-ui
cp .env.example .env # then edit .env and set your own secrets
docker compose up -dAccess: http://localhost:5173 with the credentials you set in .env:
Username: admin@example.com # FIRST_SUPERUSER in .env
Password: <FIRST_SUPERUSER_PASSWORD in .env>Development URLs, for local development. The frontend proxies /api, /mcp,
/docs and /redoc to the backend, so everything the app needs is on one
origin — port 8000 stays published for direct backend access.
Frontend (and API, Swagger, MCP): http://localhost:5173
Automatic Interactive Docs (Swagger UI): http://localhost:5173/docs
Automatic Alternative Docs (ReDoc): http://localhost:5173/redoc
MCP endpoint: http://localhost:5173/mcp/
Backend, direct: http://localhost:8000
Adminer: http://localhost:8080
Traefik UI: http://localhost:8090
MailCatcher: http://localhost:1080
For example, deploying on server 192.168.8.8. Only .env needs to change — no edits to any compose file.
git clone https://github.com/thangphan205/tacacs-ng-ui
cd tacacs-ng-ui
cp .env.example .envEdit .env — change these 3 values:
DOMAIN=192.168.8.8
FRONTEND_HOST=http://192.168.8.8:5173
SECRET_KEY=<run: openssl rand -hex 32>VITE_API_URL stays empty: the UI calls its own origin and the frontend
proxies through to the backend, so one URL serves everything.
Then build and start:
docker compose build
docker compose up -dAccess — the UI, the API, Swagger (/docs) and MCP (/mcp/) all live under
http://192.168.8.8:5173, with the credentials set in .env:
Username: admin@example.com # FIRST_SUPERUSER in .env
Password: <FIRST_SUPERUSER_PASSWORD in .env>Network devices reach the server on TCP 49 (TACACS+) and, only when RADIUS is enabled, UDP 1812/1813 (RADIUS). Open those ports to the device networks.
Note:
FRONTEND_HOSTdrives the CORS allow-list, the WebAuthn/passkey origin, the OAuth redirect and the links in outgoing emails — it must match what the browser shows, port included.BACKEND_CORS_ORIGINSneeds no edit.
Point DNS at the server, then run the bootstrap script from the repository root:
git clone https://github.com/thangphan205/tacacs-ng-ui
cd tacacs-ng-ui
bash setup.shIt writes .env with generated secrets, starts Traefik with HTTPS and Let's
Encrypt, builds the images, runs the migrations, and prints the admin password
once at the end. bash setup.sh --help lists the flags.
For the manual steps, HA, upgrades and the environment variable reference, see docs/en/deployment.md.
Before deploying, change at least these values in .env:
SECRET_KEYFIRST_SUPERUSER_PASSWORDPOSTGRES_PASSWORD
Pass these as environment variables from secrets. See docs/en/deployment.md for details.
Some environment variables in the .env file have a default value of changethis.
To generate a secure key:
python3 -c "import secrets; print(secrets.token_urlsafe(32))"Run again to generate another key.
To enable "Sign in with Google", create OAuth credentials in Google Cloud Console → APIs & Services → Credentials → OAuth 2.0 Client ID, then add to .env:
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret
GOOGLE_REDIRECT_URI=http://<your-host>:8000/api/v1/oauth/google/callbackAlso add GOOGLE_REDIRECT_URI as an Authorized Redirect URI in Google Console. If Google OAuth is not configured, the "Sign in with Google" button shows an error and email/password login continues to work normally.
For air-gapped or intranet-only environments, configure native LDAP / LDAPS authentication under Admin → Authentication Providers → LDAP / AD (or via .env fallback variables):
- Supported Providers: FreeIPA, Microsoft Active Directory, OpenLDAP, and Generic LDAP (selecting a provider populates default user/group attributes and search filters; you can also click Prefill from MAVIS).
- Multiple Servers & Failover: Configure multiple LDAP/LDAPS servers with priority ordering (
1 = Primary,2 = Secondary, etc.). Failover occurs automatically on socket/TLS/connection unavailability only (never on invalid credentials). - Two-tab login page: LDAP (directory username) and Local Account (email). A local password is never sent to the directory. Turning off Allow password login hides the Local Account tab; LDAP has its own Enable switch.
- Optional Custom Group Gate: Set Required LDAP Group to a custom group name (e.g.
tacacs-ui-users) or full DN (cn=network-admins,cn=groups,dc=example,dc=com) to restrict who can sign in, or leave it blank to allow any valid user underBase DN. - Local RBAC on TACACS-NG-UI: LDAP is used for authentication only. First-time LDAP users are provisioned as Read-Only (
is_superuser = False), and Superuser promotion or account deactivation is managed locally in Admin → Users Management. - Safe account linking: accounts are keyed on the entry's immutable ID (
objectGUID/ipaUniqueID/entryUUID). An existing local account with the same email is linked only when you opt in, and a superuser account never is. See the user guide.
| Provider | Base DN Example | User Search Filter Default |
|---|---|---|
| FreeIPA | cn=accounts,dc=example,dc=com |
(&(objectClass=posixAccount)(|(uid={username})(krbPrincipalName={username}))) |
| Active Directory | DC=example,DC=com |
(&(objectClass=user)(|(sAMAccountName={username})(userPrincipalName={username}))) |
| OpenLDAP | ou=people,dc=example,dc=com |
(&(objectClass=inetOrgPerson)(uid={username})) |
For devices that speak only RADIUS (MikroTik RouterOS, many wireless controllers and small firewalls):
- Enable under NG Settings → RADIUS (authentication / accounting ports, default UDP 1812 / 1813).
RADIUS_ENABLED=truein.envturns it on at first startup only; the UI owns the setting after that. While it is off, the generated config contains no RADIUS at all. - Per-host RADIUS Secret under Hosts, inherited through Parent like the TACACS+ key. A RADIUS-only device needs no TACACS+ key.
- Vendor attributes from a built-in dictionary (MikroTik, Cisco, Microsoft, Fortinet, Palo Alto, Juniper, Aruba, Huawei); add more as
radius.dictionarytext. A profile's Add RADIUS Attribute menu writes theif (aaa.protocol == radius)script for you. - CHAP / MS-CHAP need password type
clear. MikroTik RouterOS logs in with MS-CHAPv2, so its users must beclear;cryptusers can use PAP only. - RADIUS logins and accounting go to the same Events, statistics, alerts and SIEM feed, marked
protocol = radius.
Full guide: docs/en/radius.md. Device example: MikroTik RouterOS.
tacacs-ng-ui supports three HA deployment models:
| Model | Description |
|---|---|
| A — Independent | Two fully separate stacks — no sync, each zone managed independently |
| B — Primary–Standby | Zone B replicates from Zone A via PostgreSQL streaming replication; config syncs automatically or on-demand |
| C — Multi-Node | One primary + N standbys; config fan-out to all peers; peers managed via UI without restart |
All models support per-zone LDAP server configuration via MAVIS_OVERRIDE_* env vars. With RADIUS enabled, every node answers RADIUS: open UDP 1812/1813 on each one.
Full guide: docs/en/high-availability.md
New here? See Configure with an AI assistant for the five-minute quick start. This section is the reference.
A Model Context Protocol endpoint lets an LLM client (Claude Desktop, Claude Code, Antigravity, Gemini, Cursor, Windsurf) inspect TACACS+ entities, render config previews and diffs, and syntax-check config text with the real tac_plus-ng -P parser. On by default (MCP_ENABLED=true; set to false to disable); authenticated with dedicated, revocable API keys, with secrets redacted from all output.
Keys are issued at one of two access levels:
| Level | What the client can do |
|---|---|
| Read-only | Inspect entities and settings, render previews, diffs and sections, syntax-check config. Changes nothing. |
| Read-write | The above, plus creating, updating and deleting TACACS+ entities. Requires the key to belong to a superuser. |
Neither level can deploy. There is no tool that saves a config file, activates one, or reloads tac_plus-ng. An entity edited over MCP sits in the database until a human opens TACACS Configs and presses Generate, then Activate — and that page now flags when the database has drifted from the running config, so a pending change is visible rather than silent.
Full guide: docs/en/mcp-server.md
Full usage guide (managing users, hosts, profiles, rulesets, generating configs, monitoring): docs/en/user-guide.md.
Backend docs: backend/README.md.
Frontend docs: frontend/README.md.
Deployment docs: docs/en/deployment.md.
General development docs: docs/en/development.md.
This includes using Docker Compose, custom local domains, .env configurations, etc.
To further enhance the security and utility of tacacs-ng-ui, the following roadmap has been established:
- Modernized Authentication Framework: ✅ Google OAuth (Authorization Code flow), ✅ Keycloak OIDC, and ✅ Passkeys (WebAuthn) for passwordless login are all supported as of v0.2.0; ✅ Microsoft / Entra ID sign-in was added in v0.6.1.
- Comprehensive Frontend Audit Logging: ✅ Every UI action (create/update/delete/login/config-apply) is recorded with actor, IP, entity snapshot, and timestamp as of v0.2.1. Includes CSV export, search, and date-range filter.
- Advanced Observability Dashboard: ✅ Today's log summary, config overview cards, recent user activity, Top 5 pie charts (users/IPs) with Last 7 Days / Last 30 Days / Date Range filter, and AAA trend line chart — all shipped in v0.3.0. Structured TACACS log events viewer with date/type/result/username filters added in v0.3.0. Enhanced in v0.3.2 with clickable username drill-down, command/port columns, row-click detail drawer, and session timeline for auditing full command sequences.
- SIEM Integration: ✅ Real-time forwarding of TACACS+ log events via HTTP webhook (Splunk HEC format) and syslog (UDP/TCP) shipped in v0.3.0.
- Proactive Abnormal Access Detection & Alerting: ✅ Real-time alert rules engine with multi-channel notifications (Telegram, Slack, Discord, Teams, Google Chat, Email/SMTP, webhook) and ML-based anomaly detection (IsolationForest) shipped in v0.3.5–v0.3.6. Alerts evaluated every 5 minutes from live log files with configurable windows, thresholds, cooldowns, and severity levels. Rich per-channel formatting with severity emojis and structured layouts added in v0.3.6. Extended in v0.5.3 with per-source-IP thresholds (alert when one IP crosses N auth rejects in the window) and a structured
dataobject on webhook payloads for downstream automation. - Improved UX / Zero-Config Start: ✅ Shipped in v0.4.0 — interactive Field Guide panels in every Add/Edit dialog, premium UI redesign across all management tables, multi-vendor seed data (Cisco, Arista, Huawei, Juniper, Palo Alto, Fortinet) pre-loaded on first startup, inline TACACS+ config file editing, command tooltips and interactive event selection in session timeline, and unified 24-hour datetime formatting.
- High Availability: ✅ Shipped in v0.5.0 — Model C multi-node HA (one primary + N standbys) with config fan-out to every enabled peer and per-peer sync state tracking. All HA settings except
NODE_ROLEandINTERNAL_SYNC_TOKENlive in the database and are editable from the UI without a restart, and promoting a standby writes its scheduler state directly. Hardened in v0.5.1 with standby failover peer seeding, a read-only-safe standby dashboard, and a unifiedsetup-ha.shdeployment script. - LLM-Assisted Administration: ✅ Shipped in v0.6.0 — an MCP server exposing fifteen tools, a tac_plus-ng syntax reference resource, an entity schema resource, and an authoring prompt, so an LLM client can inspect entities, preview and diff configs, syntax-check candidate config text against the real parser, and — with a read-write key — create, update and delete entities. Backed by scoped, revocable API keys with secret redaction on every response. Deploying a config (saving, activating, reloading the daemon) is deliberately and permanently out of scope, enforced by a guard test rather than convention.
- RADIUS for RADIUS-only devices: ✅ Shipped in v0.7.0 — the same tac_plus-ng answers RADIUS (UDP 1812/1813, off by default) with per-host RADIUS secrets, a built-in vendor dictionary plus custom
radius.dictionarytext, profile reply attributes (MikroTik-Group,Cisco-AVPair, …), PAP / CHAP / MS-CHAPv2, and RADIUS events in the same Events, statistics, alerts and SIEM feed. Verified end to end against the real daemon and MikroTik RouterOS 7.25.1.
Check the file docs/en/release-notes.md.
This project is licensed under the terms of the MIT license.
Source code: https://github.com/thangphan205/tacacs-ng-ui


















