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 →

Config.json Reference

Complete reference for every field in /etc/ftagent/config.json. Created by ftagent --setup, permissions chmod 600.

Core Fields

FieldTypeDefaultDescription
api_key*string""Per-node API key from the Flowtriq dashboard.
node_uuid*string""Node UUID from the Flowtriq dashboard.
api_basestring"https://flowtriq.com/api/v1"API base URL. Change only for white-label deployments.
interfacestring"auto"Network interface to monitor. "auto" detects the primary interface.

PCAP Capture

FieldTypeDefaultDescription
pcap_enabledbooltrueEnable packet capture for forensic analysis.
pcap_modestring"tcpdump""tcpdump" (near-zero CPU) or "scapy" (per-packet Python analysis).
pcap_dirstring"/var/lib/ftagent/pcaps"PCAP storage directory.

Logging

FieldTypeDefaultDescription
log_filestring"/var/log/ftagent.log"Log file path.
log_levelstring"INFO"DEBUG, INFO, WARNING, ERROR.

Detection and Baselines

FieldTypeDefaultDescription
dynamic_thresholdbooltrueUse EWMA-based dynamic thresholds.
baseline_windowint300Seconds of traffic samples for rolling baseline.
health_portint9100Health check HTTP port. 0 to disable.
auto_updatebooltrueDaily update check on startup (non-blocking).

Flow Protocol Collector

FieldTypeDefaultDescription
flow_enabledboolfalseEnable sFlow/NetFlow/IPFIX collector.
flow_protocolstring"auto""auto", "sflow", "netflow_v5", "netflow_v9", or "ipfix".
flow_portint0Listen port. 0 = protocol default (sFlow: 6343, NetFlow: 2055, IPFIX: 4739).
flow_bindstring"0.0.0.0"Bind address for flow listener.
flow_sample_rateint0Override sample rate. 0 = use packet-embedded rate.
flow_source_ipsarray[]Allowed source IPs (empty = accept all).

GRE Deduplication

FieldTypeDefaultDescription
gre_modestring"auto""auto", "enabled", or "disabled".
gre_max_depthint3Max nested GRE layers to strip.
hypervisor_modeboolfalsePer-VM tracking when GRE is active.
vm_labelsobject{}Inner IP to label map: {"10.0.0.5": "Customer A"}

Mirror / SPAN Mode

FieldTypeDefaultDescription
mirror_modeboolfalseEnable mirror/SPAN per-IP detection.
mirror_interfacestring""NIC connected to SPAN port (required when mirror_mode is true).
mirror_subnetsarray[]Monitored CIDRs. Empty = all traffic.
mirror_ip_labelsobject{}Destination IP display names.
mirror_capture_modestring"af_packet""af_packet" (high perf) or "tcpdump" (fallback).

Full Example Config

{ "api_key": "ft_live_abc123def456...", "node_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "api_base": "https://flowtriq.com/api/v1", "interface": "auto", "pcap_enabled": true, "pcap_mode": "tcpdump", "pcap_dir": "/var/lib/ftagent/pcaps", "log_file": "/var/log/ftagent.log", "log_level": "INFO", "dynamic_threshold": true, "baseline_window": 300, "health_port": 9100, "auto_update": true, "flow_enabled": false, "flow_protocol": "auto", "flow_port": 0, "gre_mode": "auto", "mirror_mode": false }

Minimal Config

{ "api_key": "ft_live_abc123def456...", "node_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }

Config Validation Errors

ErrorCauseFix
No api_key configuredEmpty api_keyRun ftagent --setup
No node_uuid configuredEmpty node_uuidCopy UUID from dashboard
Invalid JSON in configSyntax errorValidate: python3 -m json.tool /etc/ftagent/config.json
ESC