Troubleshooting - CyberMind-FR/secubox-deb GitHub Wiki
SecuBox Troubleshooting
Quick Diagnostics
# System status
secubox-status
# Check all services
systemctl status secubox-* --no-pager
# View logs
journalctl -u secubox-* -f
# Network diagnostics
secubox-netdiag
Common Issues
Cannot Access Web UI
Symptoms: Browser shows connection refused or timeout
Solutions:
-
Check nginx is running:
systemctl status nginx systemctl restart nginx -
Check firewall:
nft list ruleset | grep 443 -
Verify IP address:
ip addr show br-lan -
Check certificate:
openssl x509 -in /etc/secubox/tls/cert.pem -text -noout
SSH Connection Refused
Solutions:
-
Check SSH service:
systemctl status sshd -
Check firewall allows SSH:
nft list ruleset | grep 22 -
Verify listening port:
ss -tlnp | grep ssh
No Internet on LAN Clients
Solutions:
-
Check NAT is enabled:
nft list table inet nat -
Check IP forwarding:
sysctl net.ipv4.ip_forward -
Check DHCP server:
systemctl status dnsmasq -
Check WAN interface has IP:
ip addr show eth0
CrowdSec Not Blocking
Solutions:
-
Check CrowdSec is running:
systemctl status crowdsec cscli metrics -
Check bouncers:
cscli bouncers list -
Check decisions:
cscli decisions list
WireGuard Not Connecting
Solutions:
-
Check interface is up:
wg show -
Check port is open:
ss -ulnp | grep 51820 nft list ruleset | grep 51820 -
Check keys are configured:
cat /etc/wireguard/wg0.conf
High CPU/Memory Usage
Solutions:
-
Check what's using resources:
htop # or secubox-glances -
Check for stuck processes:
ps aux --sort=-%cpu | head -10 -
On ESPRESSObin (low RAM):
# Enable swap if not already swapon --show free -h
DSA Switch Detection Loop (ESPRESSObin)
Symptoms: Boot log shows repeated messages:
mv88e6085 d0032004.mdio-mii:01: switch 0x3410 detected: Marvell 88E6341, revision 0
hwmon hwmon0: temp1_input not attached to any thermal zone
This is a known issue with the Marvell 88E6341 DSA (Distributed Switch Architecture) driver on some ESPRESSObin boards.
Solutions:
-
Boot with DSA disabled (select option 2 in boot menu):
- At boot menu, select "Live Boot + No DSA Switch"
- This adds
modprobe.blacklist=mv88e6xxx,dsa_coreto boot args
-
Manually blacklist the driver:
echo "blacklist mv88e6xxx" | sudo tee /etc/modprobe.d/no-dsa.conf echo "blacklist dsa_core" | sudo tee -a /etc/modprobe.d/no-dsa.conf sudo update-initramfs -u -
Use a different DTB:
- Some DTB variants handle the switch differently
- Try
armada-3720-espressobin.dtbinstead of v7 variant
-
Kernel parameters (add to cmdline):
mv88e6xxx.blacklist=1
Note: Disabling DSA means you lose the hardware switch functionality. The LAN ports will not work as a switch but can still be configured as individual interfaces.
Boot Stuck or Kernel Panic
Symptoms: Boot hangs or shows panic after loading kernel
Solutions:
- Connect serial console (115200 8N1) to see actual error
- Try different DTB variants from boot menu
- Increase rootdelay: add
rootdelay=15to boot args - Boot with minimal options:
root=/dev/sda2 rootwait console=ttyMV0,115200 single
Logs Location
| Service | Log Location |
|---|---|
| System | journalctl |
| Nginx | /var/log/nginx/ |
| HAProxy | /var/log/haproxy.log |
| CrowdSec | cscli metrics / journalctl -u crowdsec |
| SecuBox modules | journalctl -u secubox-* |
| Audit | /var/log/secubox/audit.log |
Recovery Mode
Via Serial Console (ARM)
- Connect serial console (115200 8N1)
- Boot and interrupt U-Boot
- Boot to single-user mode:
=> setenv bootargs "root=LABEL=rootfs single" => boot
Via GRUB (x86)
- At GRUB menu, press
e - Add
singleto kernel line - Press F10 to boot
Reset to Factory Defaults
# WARNING: This resets all configuration!
secubox-factory-reset
# Or manually:
rm -rf /etc/secubox/modules/*
cp /usr/share/secubox/defaults/* /etc/secubox/
systemctl restart secubox-*
Network Debugging
Capture Traffic
# On WAN interface
tcpdump -i eth0 -w /tmp/wan.pcap
# On LAN bridge
tcpdump -i br-lan -w /tmp/lan.pcap
Check Routing
ip route show
ip rule show
DNS Issues
# Check DNS resolution
dig @127.0.0.1 google.com
# Check dnsmasq
systemctl status dnsmasq
cat /etc/resolv.conf
Getting Help
- Check logs:
journalctl -xe - Check wiki: Modules for module-specific help
- GitHub Issues: Report a bug
See Also
- Configuration — Configuration reference
- Installation — Installation guide
- ARM-Installation — ARM-specific issues
- ESPRESSObin — ESPRESSObin-specific guide