mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-28 21:17:36 +00:00
New modules created (8): - secubox-ai-insights: ML threat detection and anomaly analysis - secubox-ipblock: IP blocklist manager with nftables integration - secubox-interceptor: Traffic interception and SSL inspection - secubox-cookies: Cookie tracking and GDPR compliance - secubox-mac-guard: MAC address whitelist/blacklist control - secubox-dns-provider: Multi-provider DNS API (OVH, Gandi, Cloudflare) - secubox-threats: Unified threat dashboard with IOC management - secubox-openclaw: OSINT reconnaissance tool Previously built: - secubox-wazuh: SIEM integration - secubox-ossec: Host IDS All modules include: - FastAPI backend with JWT authentication - P31 Phosphor light theme frontend - Debian packaging with systemd integration - nginx reverse proxy config - Menu integration Total packages: 93 (was 85) All migration phases complete (8, 9, 10) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
806 B
Bash
Executable File
28 lines
806 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ "$1" = "configure" ]; then
|
|
# Create required directories
|
|
mkdir -p /etc/secubox/ipblock
|
|
mkdir -p /var/lib/secubox/ipblock/lists
|
|
mkdir -p /etc/nftables.d
|
|
chown -R secubox:secubox /var/lib/secubox/ipblock 2>/dev/null || true
|
|
|
|
# Install nginx config
|
|
if [ -d /etc/nginx/secubox.d ]; then
|
|
cat > /etc/nginx/secubox.d/ipblock.conf << 'EOF'
|
|
# /etc/nginx/secubox.d/ipblock.conf
|
|
location /api/v1/ipblock/ {
|
|
proxy_pass http://unix:/run/secubox/ipblock.sock:/;
|
|
include /etc/nginx/snippets/secubox-proxy.conf;
|
|
}
|
|
EOF
|
|
nginx -t 2>/dev/null && systemctl reload nginx 2>/dev/null || true
|
|
fi
|
|
|
|
systemctl daemon-reload
|
|
systemctl enable secubox-ipblock.service || true
|
|
systemctl start secubox-ipblock.service || true
|
|
fi
|
|
#DEBHELPER#
|
|
exit 0
|