Understanding DoS vs DDoS

DoS (Denial of Service): A single IP establishes multiple connections. BitNinja blocks this IP once it reaches the configured threshold.

DDoS (Distributed Denial of Service): Multiple IPs establish relatively few connections each but overwhelm the server in aggregate. This makes the automatic detection using tools like BitNinja more difficult since no single IP exceeds the threshold.

Determine if the attack is DoS or DDoS

Checking the connection numbers is a simple way to determine what kind of attack is being conducted against your server.
netstat -ant | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn

General Recommendations