DDoS mitigation with BGP Flowspec, on the routers you already have.

A blackhole drops everything sent to the attacked address. Flowspec drops only the attack. Wanguard Filter works out what the malicious packets have in common — a source port, a protocol, a handful of source addresses — and announces it to your edge routers as Flowspec rules. The routers discard or rate-limit the matching traffic, everything else is forwarded, and the address stays online. Nothing is added to the traffic path, so the capacity is the capacity of your routers.

Flow Filter rules in < 5 s · 1 Tbps+ through Flowspec routers · no server in the traffic path

A Flow Sensor detects the attack from the router’s flows, a Flow Filter finds its pattern and announces Flowspec rules; the border router drops only the matching trafficInternetYour border routerBGP FlowspecYour networkattacked address onlineall trafficincl. attacksclean trafficonly the attack is droppedConsoleFlow Sensordetects the attackFlow Filterfinds the pattern, writes rulesWanguard, beside the path: no traffic passes through itflowsFlowspec rules
  1. Your routers export flows, as they do today.A Flow Sensor detects the attack and names the attacked address.
  2. A Flow Filter looks at the flows towards that address.It finds what the attack has in common: source addresses, ports, protocols.
  3. Wanguard announces the pattern as Flowspec rules.Through ExaBGP or GoBGP, to your edge routers or to a route reflector.
  4. The routers drop or rate-limit only what matches.Everything else is forwarded as usual. The rules are withdrawn when the attack ends.
flows to the SensorFlowspec rules to the routerattack dropped on the routerclean traffic delivered

What you need

No traffic passes through a Wanguard server in this setup, so there is no scrubbing hardware to size. The work is done by flow data, a small Linux server and the routers you own.

ComponentWhat it does hereLicense
Flow SensorDetects the attack from the flows of each router.$595 / year per flow exporter
Flow FilterFinds the attack’s pattern in those flows and writes the rules. One instance can serve the whole network; it needs no special hardware, and a virtual machine is usually fine.$995 / year, however many Flow Sensors feed it
ConsoleRuns the response and shows every rule that was announced.free
BGP ConnectorAnnounces and withdraws the rules through ExaBGP or GoBGP.free
On your networkEdge routers that support BGP Flowspec, and a BGP session from the Wanguard server to them or to a route reflector.none

Smallest setup: one Sensor and one Filter license, $1,590 a year. A Packet Sensor and a Packet Filter on a mirror port write Flowspec rules as well, in under a second after detection, and their rules can also match packet lengths and TCP flags; they need a dedicated server.

Precise rules, sized for a router

Routers hold a limited number of Flowspec rules, and most say little about what a rule matched. Wanguard is built around both limits.

Only the attack is dropped

Rules are tried from the most specific to the least: a source address or a source port before a destination port or a whole protocol. Criteria you find too broad can be switched off, and a whitelist protects traffic that must never be blocked. The Filter can be set to discard what the rules match or, for attacks measured in bits per second, to rate-limit it.

Anomaly mitigation, in the docs →

Within your router’s limits

Each BGP Connector has a ceiling for the number of rules it may announce, so an attack from thousands of sources cannot overflow the router’s Flowspec table. Carpet bombing can be answered with one rule for the subnet instead of one per address. The rules are withdrawn by themselves when the anomaly ends.

The BGP Connector, in the docs →

Counters, where the router has them

On Juniper MX, Wanguard reads back how much traffic each rule matched and shows it beside the rule. On every router, the anomaly report lists the rules that were announced and when. Operators can add or withdraw a Flowspec rule by hand from the Console, or through the REST API.

The Routing report, in the docs →

Flowspec can also redirect instead of dropping: the traffic that matches a rule, and only that, is sent to a scrubbing server. See scrubbing by BGP diversion.

Where Flowspec fits

It keeps the attacked address online without any new device in the path, when the routers can do the work.

A good fit

Flowspec fits when

  • Your edge routers support BGP Flowspec and have room in their filter tables.
  • The attacked address must stay online and the attack is larger than a server could scrub: the routers do the dropping, so attacks above 1 Tbps are within reach.
  • You would rather not add hardware to the traffic path, or buy any.
Another method

Look at another method when

  • The attack can only be told apart by what flow records leave out: packet lengths, TTLs, ICMP types or payloads. A Packet Filter sees those; see scrubbing or in-line mitigation.
  • Every second counts. With NetFlow and IPFIX the rules can only follow the router’s flow export, usually 5 to 60 seconds after the attack starts; sFlow is exported almost at once.
  • The flood is larger than your uplinks. Rules on your own routers cannot empty a link that is already full: blackhole it upstream.

The other solutions

Most networks use more than one: a single response can filter an attack first and blackhole it only when it outgrows the filter.

First, always

DDoS detection

Know within seconds who is attacked, by what and how hard. Every method here starts from a Sensor’s anomaly.

Fits when: you want to know first, or someone else does the mitigation.
At your upstreams

BGP blackholing (RTBH)

Your upstream providers null-route the attacked address. It goes offline; the rest of the network stays up.

Fits when: the attack is bigger than your links.
On a scrubbing server

Scrubbing by BGP diversion

The attacked address is diverted to a scrubbing server, cleaned and returned: off-ramp and on-ramp.

Fits when: the address must stay online and your routers cannot filter the attack.
On a server in the path

In-line mitigation

A Wanguard server bridges or routes the link and filters attacks as they pass, with no BGP.

Fits when: you protect one site or a few links.

All solutions, side by side →  ·  Pricing →  ·  Choosing a method of DDoS mitigation, in the docs →

Try the full product on your own hardware

Every feature, any number of servers, 30 days — by requesting a free evaluation license. Our engineers help you set it up.

Request a trial key
Debian 11–13Ubuntu 20–26RHEL 9–10RockyAlmaLinux
1

Request a key

Fill in the trial form. We review it and email download links, documentation and a 30-day license within 24 hours.

2

Install on a spare Linux server

Any 64-bit Intel/AMD box or VM. Packages install under /opt in minutes; size the hardware with the system requirements.

3

Run it for real, then buy

Ask us anything during the trial. When it earns its keep, buy licenses in the online store — the trial installation carries on with the new key.

Already running Wanguard?

The latest release is Wanguard 9.0. Upgrading from 8.x? Read the release notes first.