secubox-openwrt/luci-app-secubox
CyberMind-FR db1f8f703c feat(appstore+vhost): add 6 popular self-hosted services
Added 6 new applications to both appstore and VHost templates:

New Apps & Templates:
1. 🐳 Portainer v2.21.4 (Hosting)
   - Docker container management UI
   - VHost: portainer.local → :9000
   - WebSocket support for real-time updates

2. 🏡 Home Assistant v2024.12.5 (IoT)
   - Home automation with 2000+ integrations
   - VHost: home.local → :8123
   - WebSocket for real-time device updates

3. 🎬 Jellyfin v10.10.3 (Media)
   - Free media server (Plex alternative)
   - VHost: jellyfin.local → :8096
   - Hardware transcoding support

4. 🔐 Vaultwarden v1.32.7 (Security)
   - Bitwarden-compatible password manager
   - VHost: vault.local → :80
   - HTTPS REQUIRED for mobile apps

5. 🦊 Gitea v1.22.6 (Productivity)
   - Self-hosted Git service (GitHub alternative)
   - VHost: git.local → :3000
   - SSH access supported

6. 📊 Uptime Kuma v1.23.15 (Network)
   - Uptime monitoring with status pages
   - VHost: uptime.local → :3001
   - WebSocket for real-time status

Catalog Stats:
- Appstore: 11 → 17 apps (+6, +55%)
- VHost Templates: 13 → 19 templates (+6, +46%)
- Appstore size: 9.6KB → 15KB (+5.4KB)
- VHost templates size: 7.7KB → 12KB (+4.3KB)

Version Updates:
- appstore/apps.json: v1.2 → v1.3
- vhost-manager/templates.json: v1.0 → v1.1

All new apps:
- Docker-based for easy deployment
- Stable status
- Pre-configured VHost templates
- SSL/Auth/WebSocket settings included

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 09:13:38 +01:00
..
.github/workflows fix: hope modules refresh 2025-12-23 18:53:18 +01:00
appstore feat(appstore+vhost): add 6 popular self-hosted services 2026-01-01 09:13:38 +01:00
htdocs/luci-static/resources feat(secubox): implement conditional debug logging 2025-12-31 11:59:35 +01:00
profiles refactor secubox app packaging and theme 2025-12-29 21:57:12 +01:00
root fix(secubox): rename .appstore to appstore to fix package build 2025-12-31 12:38:47 +01:00
Makefile fix(secubox): use Package/luci/install macro for proper htdocs/root handling 2025-12-31 14:23:49 +01:00
README.md secubox: add first-run and app wizards 2025-12-29 17:14:04 +01:00

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

Wizard & App Store Integration

  • First-run assistant to verify password, timezone, storage, and preferred network mode
  • Manifest-driven app wizards (e.g., Zigbee2MQTT) surfaced directly inside SecuBox
  • secubox-app CLI (installed under /usr/sbin/) for scripted installs/updates via manifests
  • Plugins stored under /usr/share/secubox/plugins/<app>/manifest.json for easy expansion

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 modules
  • admin/secubox/network - Network Management modules
  • admin/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:

  1. Restart services:

    /etc/init.d/rpcd restart
    /etc/init.d/uhttpd restart
    
  2. Clear browser cache: Press Ctrl+Shift+R to force reload

  3. Verify menu files exist:

    ls -la /usr/share/luci/menu.d/luci-app-*.json
    
  4. 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 info
  • modules - List all SecuBox modules with status
  • modules_by_category - Filter modules by category
  • module_info - Get detailed info for a specific module
  • get_system_health - Detailed system health metrics
  • get_alerts - Aggregated alerts from all modules
  • get_dashboard_data - All dashboard data in one call
  • quick_action - Execute quick actions
  • start_module / stop_module / restart_module - Module control
  • health - System health checks
  • diagnostics - 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