DDoS Detection for OPNsense
OPNsense has built-in NetFlow export. Enable it, point it at Flowtriq's agent, and get real-time DDoS detection, attack classification, and automated mitigation with zero plugins.
How It Works
No plugins required. OPNsense ships with NetFlow export built into the base system. Navigate to Reporting > NetFlow, enable capture, add your ftagent host as a target, and flows start arriving immediately. OPNsense can also export to multiple targets at once, so you can send flows to ftagent and any other collector simultaneously.
Setup
Three steps to DDoS protection
Install ftagent
Install ftagent on any Linux server on your network. A VM, container, or bare-metal box all work. One command to install:
curl -sL https://get.flowtriq.com | sudo bash
Enable OPNsense NetFlow
Go to Reporting > NetFlow, enable local capture, select your WAN interface, and add your ftagent host IP:port as a capture target. Click Save, then Apply.
See attacks in your dashboard
Within minutes, traffic data appears in Flowtriq. Baselines build automatically. Attacks are detected, classified, and trigger your configured alert channels and mitigation policies.
Capabilities
What you get with this integration
Real-Time Attack Detection
Flowtriq analyzes NetFlow data from OPNsense to detect volumetric DDoS attacks in real time. Dynamic baselines learn your normal traffic patterns and alert on anomalies.
Attack Classification
Every detected attack is classified into one of 7+ families: SYN floods, UDP amplification, DNS reflection, NTP monlist, ICMP floods, GRE floods, and fragmentation attacks. Each with protocol-level confidence scores.
Automated Mitigation
Configure 4-level auto-escalation: start with local firewall rules, escalate to BGP FlowSpec, then RTBH blackholes, then cloud scrubbing. All triggered automatically based on attack severity.
Multi-Channel Alerting
Get notified instantly via Discord, Slack, PagerDuty, OpsGenie, email, SMS, or webhooks. Alert messages include attack type, target IP, traffic volume, and recommended actions.
Multi-Target Export
OPNsense can send flows to Flowtriq and any other NetFlow collector simultaneously. No need to choose between DDoS detection and your existing traffic analytics stack.
Traffic Analytics
Visualize traffic patterns with per-protocol breakdown, top talkers, bandwidth utilization, and PPS charts. All built from the NetFlow data OPNsense exports natively.
Comparison
OPNsense vs pfSense for Flowtriq integration
| Feature | OPNsense | pfSense |
|---|---|---|
| NetFlow support | Built-in (native) | Via softflowd package |
| Plugin required | None | softflowd |
| Multi-target export | Yes, built-in | Single target per instance |
| NetFlow v5 | ||
| NetFlow v9 | ||
| Setup time | ~3 minutes | ~5 minutes |
| Flowtriq detection quality | Identical | Identical |
Expectations
NetFlow integration vs direct agent install
The OPNsense integration gives you full DDoS detection with some tradeoffs compared to installing ftagent directly on a server.
What you get
- Real-time volumetric DDoS detection
- Full attack classification (7+ families)
- Automated mitigation via BGP FlowSpec, RTBH, and cloud scrubbing
- Multi-channel alerting (Discord, Slack, PagerDuty, and more)
- Traffic analytics and incident history
- Network-wide visibility from your gateway
- Multi-target flow export (unique to OPNsense)
What you trade off
- No PCAP packet captures for forensic analysis
- 15-60 seconds additional detection latency
- No per-packet payload inspection
- No on-host firewall rule deployment on OPNsense itself
For sub-second detection and PCAP evidence, install ftagent directly on your critical servers in addition to the OPNsense integration.
Protect your OPNsense network today
Real-time DDoS detection and automated mitigation starting at $9.99/node/month. Free 14-day trial with no credit card required.
FAQ