All guides
Term

DDoS

A distributed attack aimed at overwhelming network resources or applications with traffic from multiple sources to cause service unavailability.

DDoS (Distributed Denial of Service) is a distributed attack aimed at overwhelming network resources or applications with traffic from multiple sources to cause service unavailability. Unlike a basic Denial of Service (DoS) attack originating from a single machine, a DDoS assault leverages a coordinated network of compromised computers, servers, and IoT devices—known as a botnet—to generate massive request volumes that exhaust bandwidth, CPU, or memory.

How it works

Attackers infect thousands of internet-connected devices with malware and control them remotely through Command and Control (C2) servers. When triggered, these bots simultaneously send packets or requests to a target IP address or domain, exhausting critical resources such as the TCP backlog, connection tracking tables, or upstream network links so legitimate users cannot connect.

Vectors operate across different layers of the OSI model:

  • Volumetric and Protocol Attacks (L3/L4): Methods like SYN flood and UDP amplification saturate network capacity or exhaust firewall state tables using malformed or spoofed packets.
  • Application Layer Attacks (L7): Methods such as HTTP flood target resource-heavy endpoints like login pages, search bars, or APIs. Because these requests complete standard TCP handshakes and mimic normal user behavior, they are harder to distinguish from real traffic.

Example

During an L7 HTTP flood, a web server receives thousands of simultaneous GET or POST requests per second from distributed IP addresses, quickly exhausting worker processes. While large volumetric floods must be dropped upstream at the network edge, administrators often apply basic connection and request rate limiting directly in Nginx as a first line of defense:

http {
    limit_req_zone $binary_remote_addr zone=api_limit:10m rate=10r/s;
    limit_conn_zone $binary_remote_addr zone=addr_limit:10m;

    server {
        location /api/ {
            limit_req zone=api_limit burst=20 nodelay;
            limit_conn addr_limit 15;
            proxy_pass http://backend_upstream;
        }
    }
}

This configuration caps individual IPs at 10 requests per second with a brief burst allowance, rejecting excess traffic with an HTTP 503 status before it reaches the application backend.

What matters when choosing a server or hosting

Software firewalls alone cannot stop an attack that saturates your physical network port. When selecting a VPS or dedicated server, verify how the provider handles mitigation at the infrastructure level:

  • Always-on vs. on-demand scrubbing: Always-on mitigation inspects traffic continuously with minimal latency, whereas sensor-triggered routing detects anomalies first and then diverts traffic through scrubbing centers.
  • Network capacity and Anycast: Look for providers with multi-terabit transit capacity and Anycast routing, which disperses incoming attack traffic across multiple global points of presence. For real-world testing under heavy loads, see Anti DDoS VPS: Hard Data on 500Gbps Attack Mitigation.
  • L7 filtering capability: Standard network protection drops L3/L4 floods, but applications also require Web Application Firewalls (WAF) or behavioral filtering. Even specialized workloads like automated data collection need careful tuning to avoid false positives, as detailed in DDoS Protection for VPS Parsers: Our Hard Data & Setup.

Common mistakes

  • Exposing the origin IP address: Routing traffic through a reverse proxy or CDN is ineffective if attackers discover your server's real IP via historical DNS records, outbound mail headers, or unprotected subdomains and attack it directly.
  • Relying solely on host-based firewalls: Tools like iptables or ufw cannot prevent link saturation; if a 10 Gbps flood hits a 1 Gbps port, the interface drops packets before the OS processes them.
  • Ignoring outbound traffic hygiene: Unsecured servers with weak credentials or open UDP services (such as unauthenticated DNS or Memcached) can be hijacked and used as amplifiers in attacks against other targets.

FAQ

What is the difference between DoS and DDoS?

A DoS (Denial of Service) attack comes from a single source and can usually be stopped by blocking one IP address or subnet. A DDoS attack originates from thousands of distributed sources simultaneously, making simple IP blocking ineffective.

Can a Linux firewall stop a volumetric DDoS attack?

No. While host-level rules can drop small application-level floods, volumetric attacks fill the upstream network pipe before packets reach your server's network interface. Upstream scrubbing by your hosting provider or CDN is required.

How do scrubbing centers filter malicious traffic?

Scrubbing centers ingest incoming traffic via BGP or DNS routing, inspect packet headers and behavioral signatures in real time, drop malicious floods, and forward only clean traffic back to your origin server over clean tunnels or VLANs.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.