A distributed denial-of-service attack floods your server or network with traffic until it can't serve real users.
Signs
- A sudden traffic spike in your graphs, often many times normal
- A saturated uplink: packet loss and high latency for everything behind it
- Huge numbers of connections from many IPs, or a flood of UDP or SYN packets
- Your provider null-routing an IP
Quick checks
iftop -i eth0 # live bandwidth per host ss -s # connection summary tcpdump -ni eth0 -c 200 # sample of the traffic
Response options
- Small, application-level floods (L7): rate limiting, CrowdSec, or a CDN/WAF such as Cloudflare in front of websites.
- Volumetric attacks bigger than your uplink: these must be stopped upstream. Use your provider's scrubbing service, or a scrubbing provider such as Path.net or Voxility that you can route traffic through.
- Last resort: blackhole the attacked IP via BGP so the rest of your network stays up. See BGP communities and remote-triggered blackholing.
Prepare before it happens
Know your upstreams' DDoS contacts and blackhole communities, keep monitoring with traffic graphs, and agree a plan for your most important IPs. If you're under attack now, call +372 880 7752.