Exporter Guides & Tuning
nxtflow accepts NetFlow v5, NetFlow v9, IPFIX on UDP port 2055 and sFlow v5 on UDP port 6343.
Platform Guides
Ready-to-apply configurations are provided in examples/exporters/:
| Platform | Protocol | Guide |
|---|---|---|
| MikroTik RouterOS v7 | NetFlow v9 / IPFIX | mikrotik-routeros.rsc |
Linux Hosts & Software Bridges (softflowd) |
NetFlow v9 | softflowd-linux.md |
pfSense & OPNsense (softflowd / ng_netflow) |
NetFlow v9 | pfsense-opnsense.md |
| Cisco IOS-XE (Flexible NetFlow) | NetFlow v9 / IPFIX | cisco-ios-xe.txt |
| UniFi Gateways | NetFlow v9 | unifi-gateway.md |
Best Practices
- Preserve Exporter Source IPs (
externalTrafficPolicy: Local): Keepcollector.service.externalTrafficPolicy=Localso Kubernetes LoadBalancer nodes do not SNAT exporter traffic to an internal cluster node IP. - Prevent Feedback Loops (
not port 2055): When runningsoftflowdon a Linux host inside the same cluster or subnet as the collector, include a capture filter such asnot port 2055so NetFlow export packets themselves are not re-captured and re-exported. - Configure
wanIpsandlocalCidrs: Add your router's external IP(s) toenricher.classification.wanIpsand internal subnets toenricher.classification.localCidrsso NATed ingress/egress traffic is classified cleanly intoup,down, andlan. - Packet Sampling (
sampling.respectSamplingRate): If your switch or router uses1:NsFlow or NetFlow sampling, keepenricher.sampling.respectSamplingRate=truesonxtflow-enricherscalesbytesandpacketsautomatically.