Detection, Mitigation & Response

Detect and mitigate DDoS attacks in under 1 second, respond automatically, and keep your users informed.

All features →
Docs
Documentation Quick Start API Reference Agent Setup Integrations 18
Learn
Free Tools 37 Free Certifications State of DDoS 2026 REPORT DDoS Protection Landscape Buyer's Guide PDF Hackathon Sponsorships DDoS Protection Facts
Company
About Us Become a Consultant 30% Partners White Label Managed Protection Contact Us System Status
Open Source
ftagent-lite MIT NetHawk MIT
Legal
Security Trust Center Terms & Privacy
Who Uses Flowtriq

From indie hosts to ISPs, see how teams like yours use Flowtriq to detect and stop DDoS attacks.

All use cases →

Free Tool

BGP FlowSpec Rule Builder

Generate BGP FlowSpec rules for surgical DDoS traffic filtering. Define match criteria, select actions, and export ready-to-use configurations for ExaBGP, BIRD, GoBGP, or Cisco IOS-XR.

FlowSpec Rules

Your BGP neighbor or next-hop IP
ExaBGP
BIRD 2
GoBGP
Cisco IOS-XR
flowspec-rules.conf
Add FlowSpec rules and click Generate to build your configuration.
Or use a preset to get started quickly.
What is BGP FlowSpec?
BGP FlowSpec (RFC 5575) distributes traffic filtering rules via BGP. Instead of blackholing entire prefixes (RTBH), FlowSpec lets you surgically drop, rate-limit, or redirect specific traffic patterns: filtering by source/destination IP, protocol, port, packet length, DSCP, and TCP flags.
Production Warning: Always test FlowSpec rules in a lab environment first. Incorrect rules can inadvertently block legitimate traffic. Ensure your upstream provider supports FlowSpec and validate rules match your intended traffic patterns before deployment.

FlowSpec Match Types

Destination Prefix

The target IP or subnet being attacked. Usually your own prefix (e.g., 203.0.113.0/24). Required for most FlowSpec implementations.

Source Prefix

Filter by source IP or subnet of the attacker. Useful for known botnets or spoofed source ranges. Leave empty to match any source.

Protocol & Port

Match on IP protocol (TCP, UDP, ICMP) and destination/source port numbers. Essential for filtering amplification attacks targeting specific services.

Packet Length

Filter by IP packet size. Amplification attacks often have characteristic packet sizes (e.g., DNS responses >512 bytes, NTP monlist >440 bytes).

TCP Flags

Match specific TCP flag combinations: SYN, ACK, FIN, RST, PSH, URG. Critical for identifying SYN floods (SYN without ACK) or malformed packets.

Actions

Drop discards matching packets. Rate-limit throttles traffic to a specified bps. Redirect sends traffic to a scrubbing VRF for inspection.

Automate FlowSpec with Flowtriq

Flowtriq automatically generates and deploys FlowSpec rules when attacks are detected: no manual configuration needed. Our 4-level auto-escalation moves from local firewall to FlowSpec to RTBH to cloud scrubbing in seconds.

Start Free Trial Learn More

Understanding BGP FlowSpec for DDoS Mitigation

BGP FlowSpec (RFC 5575) extends the Border Gateway Protocol to distribute traffic filtering rules alongside routing information. Unlike traditional RTBH (Remote Triggered Black Hole) routing that drops all traffic to a destination prefix, FlowSpec lets you define granular match conditions: source and destination IP, protocol, port, packet length, DSCP value, and TCP flags. This means you can surgically filter attack traffic while keeping legitimate traffic flowing.

The filtering happens at the upstream router level, before attack traffic reaches your network. When a FlowSpec rule is advertised via BGP, your transit provider's routers install the corresponding filter. This is critical for volumetric attacks that exceed your local link capacity - no amount of on-host filtering helps if your 10 Gbps uplink is saturated with 50 Gbps of attack traffic.

How to Use This Tool

Start with a preset for common attack patterns (SYN flood, UDP flood, DNS amplification) or build rules manually. Define match criteria for the attack traffic you want to filter, choose an action (drop, rate-limit, or redirect to a scrubbing VRF), and generate configuration for your BGP daemon. The tool supports ExaBGP (the most common choice for programmatic FlowSpec), BIRD 2, GoBGP, and Cisco IOS-XR.

Verify with your transit provider that they accept FlowSpec rules on your BGP session before deploying to production. Not all carriers support all action types, and maximum rule counts vary.

Related reading:

Carrier Compatibility Matrix

Not all transit providers accept all FlowSpec actions. Check compatibility before deploying rules.

Provider Rate Limit Discard Redirect DSCP Mark Max Rules
NTT/GTTYesYesYesNo500
Lumen/CenturyLinkYesYesNoNo200
TeliaYesYesYesYes1000
CogentNoYesNoNo100
Hurricane ElectricYesYesYesNo250

Important: Always test FlowSpec rules on a non-production prefix first. Contact your provider's NOC to confirm their FlowSpec support before relying on it for production mitigation. Some providers require FlowSpec to be explicitly enabled on your BGP session.

Export your results

FAQ

Frequently Asked Questions

What is BGP FlowSpec and how does it stop DDoS attacks?

BGP FlowSpec (RFC 5575) advertises traffic filtering rules via BGP, installing packet-matching conditions (source/dest IP, protocol, port, length) directly on upstream routers. Traffic is dropped or rate-limited before reaching your network — unlike RTBH which drops everything to a prefix.

Which routers support BGP FlowSpec?

Cisco IOS-XR, Juniper JunOS, Arista EOS, ExaBGP, GoBGP, BIRD 2, and FRRouting all support FlowSpec. ExaBGP is the most common choice for DDoS mitigation due to its API-driven automation and Python scripting support.

What is the difference between BGP FlowSpec and RTBH?

RTBH (Remote Triggered Black Hole) drops all traffic to a destination prefix — a blunt instrument that takes the victim offline. FlowSpec is surgical: match 5-tuple conditions and apply rate-limiting or dropping to specific malicious flows while keeping legitimate traffic online.