Major documentation improvements and restructuring for better maintainability and navigation. ## Structural Changes ### New Documentation Organization - Move all documentation to DOCS/ directory for better organization - Create DOCS/archive/ for historical documents - Move deployment scripts to secubox-tools/ directory ### Archived Documents - COMPLETION_REPORT.md → archive/ (project milestone) - MODULE-ENABLE-DISABLE-DESIGN.md → archive/ (feature implemented) - BUILD_ISSUES.md → archive/ (issues resolved) - Add archive/README.md with archiving policy and document index ## Documentation Enhancements ### Version Standardization - Add version headers to CLAUDE.md (v1.0.0) - Add version headers to BUILD_ISSUES.md (v1.0.0) - Standardize date format to YYYY-MM-DD across all docs ### Cross-References & Navigation - Add "See Also" sections to PERMISSIONS-GUIDE.md - Add "See Also" sections to VALIDATION-GUIDE.md - Link quick references to detailed guides - Improve documentation discoverability ### Architecture Diagrams (Mermaid) Add 3 professional diagrams to DEVELOPMENT-GUIDELINES.md: 1. **System Architecture Diagram** (§2) - Complete data flow: Browser → LuCI → RPCD → ubus → System - Color-coded components by layer - Shows JavaScript, RPC, RPCD daemon, UCI, system services 2. **Deployment Workflow Diagram** (§9) - Step-by-step deployment process with validation checkpoints - Error recovery paths for common issues (403, 404, -32000) - Local validation, file transfer, permission fixes, service restarts 3. **Component Hierarchy Diagram** (§1) - Standard page structure and CSS class relationships - Page → Header → Stats → Content → Cards → Buttons - Shows design system component organization ## New Files ### TODO-ANALYSE.md - Comprehensive documentation improvement roadmap - Tasks categorized: Immediate, Short-term, Long-term, Optional - Progress tracking with acceptance criteria - Covers testing, security, performance guides - Documentation automation plans ## Benefits ✅ Cleaner project structure (docs in DOCS/, tools in secubox-tools/) ✅ Better documentation navigation with cross-references ✅ Visual understanding through architecture diagrams ✅ Historical documents archived but accessible ✅ Standardized versioning across all documentation ✅ Clear roadmap for future documentation improvements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5.5 KiB
SecuBox Central Hub
Version: 1.0.0
Last Updated: 2025-12-28
Status: Active
Central management dashboard for the SecuBox security and network management suite for OpenWrt.
Features
Dashboard Overview
- Real-time system health monitoring (CPU, Memory, Disk, Network)
- Visual gauges with color-coded status indicators
- Module status grid with quick access links
- Aggregated alerts from all modules
- Quick action buttons for common tasks
System Health Monitoring
- CPU: Load average and percentage with multi-core support
- Memory: RAM usage with total/used/available metrics
- Disk: Root filesystem usage and available space
- Network: Real-time RX/TX bandwidth statistics
Quick Actions
- Restart RPCD service
- Restart uHTTPd web server
- Clear system cache
- Create configuration backup
- Restart network services
- Restart firewall
Module Management
Auto-detection and status monitoring for all SecuBox modules:
Security & Monitoring
- CrowdSec - Collaborative threat intelligence
- Netdata - Real-time system monitoring
- Netifyd - Deep packet inspection
- Client Guardian - Network access control and captive portal
- Auth Guardian - Advanced authentication system
Network Management
- WireGuard - Modern VPN with QR codes
- Network Modes - Network topology configuration
- Bandwidth Manager - QoS and bandwidth quotas
- Media Flow - Media traffic detection and optimization
- Traffic Shaper - Advanced traffic shaping
System & Performance
- System Hub - Unified control center
- CDN Cache - Local caching proxy
- Virtual Host Manager - Virtual host configuration
LuCI Menu Structure
The SecuBox hub organizes all modules into a hierarchical menu structure in LuCI:
SecuBox
├── Dashboard (Main overview and system health)
├── Modules (Module management view)
├── Security & Monitoring
│ ├── CrowdSec (Collaborative threat intelligence)
│ ├── Netdata (Real-time system monitoring)
│ ├── Netifyd (Deep packet inspection)
│ ├── Client Guardian (Network access control & captive portal)
│ └── Auth Guardian (Advanced authentication system)
├── Network Management
│ ├── WireGuard (Modern VPN with QR codes)
│ ├── Network Modes (Network topology configuration)
│ ├── Bandwidth Manager (QoS and bandwidth quotas)
│ ├── Media Flow (Media traffic detection & optimization)
│ └── Traffic Shaper (Advanced traffic shaping)
└── System & Performance
├── System Hub (Unified control center)
├── CDN Cache (Local caching proxy)
└── Virtual Host Manager (Virtual host configuration)
Menu Registration
The hub defines three category parent menus that other SecuBox modules register under:
admin/secubox/security- Security & Monitoring modulesadmin/secubox/network- Network Management modulesadmin/secubox/system- System & Performance modules
Each module automatically appears in the appropriate category when installed.
Troubleshooting Menu Issues
If modules don't appear in the menu after installation:
-
Restart services:
/etc/init.d/rpcd restart /etc/init.d/uhttpd restart -
Clear browser cache: Press
Ctrl+Shift+Rto force reload -
Verify menu files exist:
ls -la /usr/share/luci/menu.d/luci-app-*.json -
Check ACL permissions:
ls -la /usr/share/rpcd/acl.d/luci-app-*.json
RPCD API Methods
The hub provides a comprehensive RPC API via ubus:
status- Get hub status and basic system infomodules- List all SecuBox modules with statusmodules_by_category- Filter modules by categorymodule_info- Get detailed info for a specific moduleget_system_health- Detailed system health metricsget_alerts- Aggregated alerts from all modulesget_dashboard_data- All dashboard data in one callquick_action- Execute quick actionsstart_module/stop_module/restart_module- Module controlhealth- System health checksdiagnostics- Generate diagnostics bundle
Installation
opkg update
opkg install luci-app-secubox
/etc/init.d/rpcd restart
/etc/init.d/uhttpd restart
Building
# Clone into OpenWrt SDK
git clone https://github.com/youruser/luci-app-secubox.git package/luci-app-secubox
make package/luci-app-secubox/compile V=s
Configuration
Edit /etc/config/secubox to customize module definitions and settings.
File Structure
luci-app-secubox/
├── Makefile
├── README.md
├── htdocs/luci-static/resources/
│ ├── view/secubox/
│ │ ├── dashboard.js # Main dashboard view
│ │ ├── modules.js # Modules management view
│ │ └── settings.js # Settings view
│ └── secubox/
│ ├── api.js # RPC API client
│ └── secubox.css # Dashboard styles
└── root/
├── etc/config/secubox # UCI configuration
└── usr/
├── libexec/rpcd/secubox # RPCD backend
└── share/
├── luci/menu.d/luci-app-secubox.json
└── rpcd/acl.d/luci-app-secubox.json
License
Apache-2.0 - Copyright (C) 2025 CyberMind.fr