mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-30 06:05:01 +00:00
1. Fix LXC architecture detection (amd64 → detect actual arch)
- bin/mitmproxyctl now uses platform.machine() to detect aarch64/arm64
2. Add missing WebUI API endpoints to status router:
- /set_mode - Set WAF mode (transparent/inspection/block)
- /save_settings - Save WebUI settings to TOML config
- /setup_firewall - Apply nftables redirect rules
- /clear_firewall - Remove WAF nftables rules
- /wan_setup - Enable WAN protection via HAProxy
- /wan_clear - Disable WAN protection
3. Expand StatusResponse with WebUI-expected fields:
- running, autobans_today/pending/total, mode, wan_protection_enabled,
crowdsec_feed, block_bots, autoban_enabled, proxy_port, web_port
4. Add /clear_alerts endpoint alias for WebUI compatibility
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| routers | ||
| __init__.py | ||
| main.py | ||