You’re basically on the right track: once an attack grows larger than the pipe that reaches your server (or the forwarding capacity of your edge router), the only two generic ways to stay up are
- get the traffic scrubbed before it reaches that pipe, or
- get much, much bigger pipes.
Commercial “scrub-as-a-service” providers (Cloudflare, Akamai Prolexic, AWS Shield Advanced, Azure DDoS Protection, etc.) are the easiest incarnation of option 1. Renting huge carrier-grade uplinks yourself is option 2.
But there’s a bit more nuance and a few hybrid / budget-friendlier approaches worth knowing about:
- Upstream filtering with your transit ISP
• S/RTBH (Source or Destination Remote-Triggered Black Hole):
– Free (just BGP announcements) and fast to activate.
– Drawback: it drops all traffic to the target prefix (the “self-inflicted outage”).
– Often used as a last-ditch “save the rest of the network” move.
• BGP FlowSpec:
– Lets you push fine-grained filtering rules upstream (rate-limit UDP 53, block TCP SYNs to port 80 with ≤64-byte packets, etc.).
– Still requires your provider to support and honor FlowSpec, and you need equipment that can originate the rules.
– Can keep the good traffic flowing if the attack pattern is well defined.
These do not cost what full scrubbing does, but you’ll need a business / enterprise circuit and a provider willing to enable them.
- GRE-or-IPsec tunnels to a remote scrubbing center
• Some smaller DDoS outfits work by giving you a /24 announced from their anycast cloud.
• Clean traffic is relayed back to you through a GRE tunnel.
• You only need enough bandwidth for the clean traffic, not the attack volume.
• Works fine for web or game traffic; can be tricky for VoIP/real-time because of extra RTT.
- Cheap(er) CDN / reverse proxy layers
• Even the free Cloudflare tier, Fastly’s “Compute @ Edge”, Bunny.net, etc. stop a surprising amount of HTTP floods because requests never touch your origin.
• Doesn’t help with non-HTTP services (mail, game servers, custom TCP/UDP).
• Still susceptible to origin-flood attacks unless you lock the origin down to accept traffic only from the proxy IPs.
- Anycast self-hosting (the DIY big-pipe method)
• Announce the same prefix from multiple PoPs around the world; volumetric traffic gets absorbed “close enough” to the source.
• Requires multiple data-center leases, BGP ASN, and global routers – realistically a mid- to large-sized network’s game.
• Operational complexity ≫ outsourcing to a scrubbing CDN.
- Cloud burst / failover
• Keep a cold-standby origin in a public cloud.
• During an attack, advertise the prefix from the cloud instance (or swing DNS/Proxy over).
• Not bullet-proof (BGP propagation delay, DNS TTLs, cloud egress charges), but cheaper than paying for 24/7 protection.
- Layer-7 “smart” tricks
• Proof-of-work / CAPTCHA, rate-limiting with something like nginx “limit_req”, handshake cookies for UDP.
• Very effective against bot-net HTTP floods under a few Gbit/s.
• Useless when the attack is a raw 200 Gbit/s SYN flood that saturates your 1 Gbit/s uplink.
Bottom line
If the threat you’re planning for is a modern, multi-hundred-gig volumetric attack, you either:
a) pay someone with a terabit-scale anycast network to eat it for you, or
b) become that someone yourself by buying (and engineering) carrier-class connectivity plus FlowSpec/RTBH tooling.
Everything else is a compromise that can absolutely work, provided the attack size and vector stay within the bounds of your chosen approach.
If you share a bit about:
• the kind of service you’re running (just a website? game servers? email?)
• typical legitimate bandwidth / connections per second
• tolerance for downtime vs. monthly budget
…I can help narrow down which mix of the above might be the most cost-effective for your use-case.