Configuration - CyberMind-FR/secubox-deb GitHub Wiki
SecuBox uses TOML configuration files located in /etc/secubox/.
/etc/secubox/
βββ secubox.toml # Main configuration
βββ modules/ # Per-module configs
β βββ crowdsec.toml
β βββ wireguard.toml
β βββ dpi.toml
β βββ ...
βββ tls/ # TLS certificates
β βββ cert.pem
β βββ key.pem
βββ secrets/ # Sensitive data (chmod 600)
βββ jwt.key
[general]
hostname = "secubox"
timezone = "Europe/Paris"
locale = "en_US.UTF-8"
[network]
wan_interface = "eth0"
lan_interfaces = ["lan0", "lan1"]
bridge_name = "br-lan"
lan_ip = "192.168.1.1"
lan_netmask = "255.255.255.0"
dhcp_enabled = true
dhcp_range_start = "192.168.1.100"
dhcp_range_end = "192.168.1.200"
[security]
firewall_enabled = true
default_policy = "drop"
crowdsec_enabled = true
waf_enabled = true
[services]
nginx_enabled = true
haproxy_enabled = true
ssh_enabled = true
ssh_port = 22Each module has its own configuration file in /etc/secubox/modules/.
# /etc/secubox/modules/crowdsec.toml
[crowdsec]
enabled = true
api_url = "http://127.0.0.1:8080"
log_level = "info"
[bouncers]
firewall = true
nginx = true
[scenarios]
ssh_bruteforce = true
http_bad_user_agent = true# /etc/secubox/modules/wireguard.toml
[wireguard]
enabled = true
interface = "wg0"
listen_port = 51820
private_key_file = "/etc/secubox/secrets/wg_private.key"
[peers]
# Peers are managed via APISome settings can be overridden via environment variables:
SECUBOX_DEBUG=1 # Enable debug mode
SECUBOX_LOG_LEVEL=debug # Set log level
SECUBOX_CONFIG=/path/to/cfg # Custom config pathAfter modifying configuration:
# Validate configuration
secubox-config validate
# Apply changes
secubox-config apply
# Or restart specific module
systemctl restart secubox-<module>For security-critical changes, SecuBox uses a double-buffer system:
/etc/secubox/
βββ active/ # Current live config (read-only)
βββ shadow/ # Pending changes (editable)
βββ rollback/ # 4 previous versions (R1-R4)
- Edit in
shadow/ - Validate:
secubox-config validate --shadow - Swap:
secubox-config swap - Rollback if needed:
secubox-config rollback R1
- Installation β Initial setup
- API-Reference β REST API documentation
- Modules β Available modules
- Troubleshooting β Common issues