Why this matters
No flows, no DDoS detection. When the dashboard stays empty, the cause is almost always one of a handful of things: network path, firewall, port, templates, license, device registration, kernel buffers or clocks.
The steps follow the packet's path, from the router to the screen. Work through them in order.
Before you start
- Root (or sudo) access to the EdgeWarden server, installed per the installation guide.
- Read access to the exporting router.
- The source IP the router exports from. In the examples: collector
192.0.2.10and router198.51.100.1. - The collector ports: 2055/UDP for NetFlow v5, v9 and IPFIX, and 6343/UDP for sFlow v5.
Step 1: Are packets reaching the server?
On the EdgeWarden server:
tcpdump -i any -n -c 20 'udp port 2055 or udp port 6343'If nothing shows up within a minute or two, the problem is upstream of the server: export config on the router, routing to 192.0.2.10, an ACL or firewall along the path (including your provider's security group, if the server runs in the cloud). The server's own firewall can't explain an empty tcpdump, because capture happens before netfilter. If packets do show up, the problem is inside the server: move on to step 2.
Step 2: Firewall and listening sockets
Check the ufw rules created by the installation guide, EdgeWarden's own server firewall, and that the collector is listening:
ufw status
nft list table inet flowspec_host
ss -ulnpme | grep -A1 -E "2055|6343"EdgeWarden has its own host firewall (Segurança → Firewall do Servidor, Security → Server Firewall), applied by the core in the nftables table inet flowspec_host. A rule there blocking 2055 or 6343, or a default drop policy that doesn't allow the router, kills the flows even with a correct ufw. A missing table means that firewall was never applied.
The collector should be bound to 0.0.0.0:2055 and 0.0.0.0:6343. It receives over IPv4: point the router's export at the server's IPv4 address. If it shows 127.0.0.1, the node is configured in the scrubber role, which by design does not accept flows from routers. If nothing shows up at all, check systemctl status flowspec-core and journalctl -u flowspec-core -n 50. If the service is active but there is no socket, the collector couldn't open the port (for example, another collector already holds 2055). That error goes to the core log, not the journal: grep -h -i listener /opt/flowspec-analyzer/logs/core.log.* | tail -n 5.
Anyone who can reach 2055/UDP can inject forged flows. Once everything works, lock it down by source: ufw allow from 198.51.100.1 to any port 2055 proto udp, then ufw delete allow 2055/udp, because the guide's generic rule keeps the port open to everyone for as long as it exists. Do the same for 6343, and update the rule if the router starts exporting from a different IP.
Step 3: Right port, right version
NetFlow and IPFIX share 2055; sFlow uses 6343. The collector identifies the version from the first two bytes of the datagram and drops anything it doesn't recognize.
| Router sends | EdgeWarden port | First payload bytes |
|---|---|---|
| NetFlow v5 | 2055/UDP | 0005 |
| NetFlow v9 | 2055/UDP | 0009 |
| IPFIX | 2055/UDP | 000a |
| sFlow v5 | 6343/UDP | 00000005 |
To check the packet itself, dump one datagram in hex. In an IPv4 packet without options, the UDP payload starts at byte 28: the seventh group on the 0x0010 line.
tcpdump -i any -n -X -c 1 udp port 2055
0x0010: c000 020a c350 0807 05dc 0000 000a 05d4 .....P..........In the example, 0807 is port 2055 and 000a means IPFIX. sFlow sent to 2055 (or NetFlow sent to 6343) reaches the server but never becomes a flow.
Step 4: NetFlow v9 and IPFIX templates
With v9 and IPFIX, data records can only be decoded after the matching template arrives. Right after you configure the router or restart flowspec-core, packets arrive but nothing shows up until the next template refresh. The interval depends on the vendor:
| Platform | Where to tune it | Documented default |
|---|---|---|
| Juniper (Junos) | template-refresh-rate seconds in the version-ipfix or version9 template | 600 s on Junos OS; 60 s on Junos OS Evolved |
| Cisco IOS XE | template data timeout under flow exporter | 600 s |
| Cisco IOS XR | template data timeout in the version v9 or version ipfix submode of flow exporter-map | varies by release (1800 s in the ASR 9000 reference); check with show flow exporter-map |
| MikroTik RouterOS | v9-template-refresh and v9-template-timeout in /ip traffic-flow target | 20 packets |
| Huawei VRP | ip netstream export template timeout-rate (minutes) | varies by product line; 30 min in the AR docs |
An interval between 60 s and 300 s is a good balance. On a freshly configured router, wait at least one template cycle.
Step 5: License exporter quota
Each plan accepts a fixed number of exporters: Starter 1, Professional 2 and Enterprise 10. Slots are taken in the order exporters start sending. Packets from an exporter over the quota are dropped before parsing, with no error on screen. The core writes its own messages to /opt/flowspec-analyzer/logs/, one file per day (journalctl only shows the service starting and failing). Look there:
grep -h -i exporter /opt/flowspec-analyzer/logs/core.log.* | tail -n 20The log is in Portuguese. A line like Exporter 198.51.100.1 registrado (1/2 vagas da licença) means the router was accepted (registered, 1 of 2 license slots). Exporter 198.51.100.2 IGNORADO — limite de 2 exporter(s) do plano de licença atingido means it was ignored because the plan limit was reached. Each line is written once per core run and old logs are deleted after a few days; if neither shows up, systemctl restart flowspec-core logs them again. Check your plan under Configurações → Sistema → Licença (Settings → System → License).
A lab router or a secondary edge box pointed at the collector also takes a slot, and so does each distinct source IP of the same router. Slots live in the core's memory: after removing the export config from unwanted devices, run systemctl restart flowspec-core to free them.
Step 6: Device registration and source IP
Register the router under Configurações → Rede → Dispositivos (Settings → Network → Devices). The Endereço IP (IP address) field must be exactly the source IP of the packets you saw in step 1. If the router exports from a different loopback than the one you registered, flows arrive but interfaces show up as if:12 instead of their names, per-interface traffic disappears and the configured sampling rate is not applied.
Registration also drives:
- Sampling: with NetFlow v5 the rate must be entered on the device; with v9 and IPFIX, the rate announced by the router wins over the configured one.
- SNMP: the Interfaces screen joins flows with SNMP. An interface without SNMP disappears from the screen even when flows are arriving.
Step 7: UDP drops in the kernel
If packets arrive but part of the traffic goes missing, the kernel may be dropping datagrams for lack of buffer space. The core asks for 16 MB per socket; without the sysctl from the installation guide, the request gets truncated and drops are silent.
ss -ulnpme | grep -A1 -E "2055|6343"
nstat -az | grep -iE "Udp.*(InErrors|RcvbufErrors)"
UdpInErrors 0 0.0
UdpRcvbufErrors 0 0.0In the ss output, the right value is rb33554432 (the kernel doubles the 16 MB requested). If you see rb425984, the guide's /etc/sysctl.d/99-flowspec-tuning.conf was not applied: apply it with sysctl --system and restart flowspec-core. The nstat counters must not grow over time. If the kernel is clean and traffic is still missing, the drop may be inside the core: look for Canal de flows cheio (flow channel full) with grep -h "Canal de flows cheio" /opt/flowspec-analyzer/logs/core.log.*.
Step 8: Clock and time zone
For NetFlow and IPFIX, EdgeWarden timestamps each flow with the time reported by the router. A router without NTP, off by hours or days, writes flows outside the window the screens display. The router's time zone doesn't matter, because the time travels in UTC; the classic mistake is a clock set by hand to local time, which on Brasília time shifts flows by 3 hours. For sFlow, the server's clock is used. Sync the server and the router to the same NTP source.
timedatectl status
System clock synchronized: yesVerifying on the router and in EdgeWarden
On the router, confirm that the exported-packets counter is increasing. The commands differ by vendor and, in some cases, by platform:
| Platform | Command |
|---|---|
| Juniper MX (inline) | show services accounting flow inline-jflow fpc-slot 0 |
| Cisco IOS XE | show flow exporter statistics |
| Cisco IOS XR | show flow exporter location 0/0/CPU0 |
| MikroTik RouterOS | /ip traffic-flow print and /ip traffic-flow target print |
| Huawei NE40E/NE8000 | display ip netstream statistics slot 1 |
Adjust the slot number and location to your chassis. In EdgeWarden:
- Under Configurações → Rede → Dispositivos (Settings → Network → Devices), confirm the router is registered with the correct source IP and that sampling shows the detectado badge (detected: the router announces the rate over v9/IPFIX) or manual (the configured rate applies).
- Wait 1 to 2 minutes, open the Flows screen and fill in the Exporter IP filter with the router's source IP: records should show up.
- Check the core log. After roughly 50,000 flows (across all exporters), it warns once if no flow carries fields such as
minimumTTL (IE 52),fragmentOffset/fragmentFlags (IE 88/197)ortcpControlBits (IE 6), and which detector goes blind. The log is in Portuguese, so search for the wordINERTE(inert) withgrep -h INERTE /opt/flowspec-analyzer/logs/core.log.*. That's not the absence of an attack, it's the absence of data: enable the field in the router's template.
Common pitfalls
- Long active timeout: long-lived flows are only exported when the active timeout expires. On MikroTik the default is 30 minutes; use
/ip traffic-flow set active-flow-timeout=1m. Around 60 s is the common recommendation. - Your own stateful firewall: with nftables rules and conntrack, exempt the flow ports with
udp dport { 2055, 6343 } notrack, as the installation guide shows. - Volume divided or multiplied: if flows show exactly
1/Nof SNMP, the sampling rate is missing; if they showN×, it was applied twice. Right after the core restarts, v9 and IPFIX without a configured rate stay at 1:1 until the router resends the options template. - A sysctl tweak that disappears: the updater rewrites
99-flowspec-tuning.conf. Put your own values in/etc/sysctl.d/99-zz-meus-ajustes.conf, which is read later and wins.
If nothing shows up, save the tcpdump and nstat output and the day's log from /opt/flowspec-analyzer/logs/ before opening a ticket. Support is provided in Portuguese only.
Next steps
With flows arriving, set up export with the full set of fields by following the guide for your vendor: Juniper MX, Cisco IOS-XE and IOS-XR, Huawei NE40E/NE8000 or MikroTik RouterOS v7. To get the sampling rate and active timeout right, read NetFlow and IPFIX sampling and timeouts without missing attacks. To review ports, buffers and services, go back to the installation guide, and see in Features how EdgeWarden uses this data to detect attacks.