Netflow/IPFIX configuration
Configure your router to export flow data to Cloudflare's network for analysis in Network Flow (formerly Magic Network Monitoring). Network Flow supports the NetFlow v5, NetFlow v9, and IPFIX formats.
Before configuring NetFlow or IPFIX, verify the following:
- Your router supports NetFlow or IPFIX export capabilities. Refer to Supported routers for a list of compatible routers.
- You have administrative access to your router's configuration interface.
- You have registered your router with Cloudflare.
Log in to your router's configuration application or command-line interface. The exact method varies by router vendor and model.
Open your router's NetFlow configuration menu and set up the Flow Exporter with the following values:
- Destination IP address:
162.159.65.1 - Destination Port:
2055 - Transport Protocol:
UDP
These settings direct your router to send flow data to Cloudflare's network for analysis.
Set up your router's Flow Record configuration with the following fields. These fields define what traffic metadata your router collects and exports.
Match fields identify the traffic:
match ipv4 protocolmatch ipv4 source addressmatch ipv4 destination addressmatch transport source-portmatch transport destination-portmatch interface input
Collect fields capture statistics about the traffic:
collect transport tcp flagcollect counter packets longcollect counter bytes longcollect flow samplercollect timestamp sys-uptime firstcollect timestamp sys-uptime last
Save your NetFlow or IPFIX configuration changes and apply them to your router. Verify that your router's NetFlow template does not contain duplicated fields, as duplicates can cause export errors.
After configuring NetFlow or IPFIX, verify that data is being sent to Cloudflare:
- Wait five to ten minutes for flow data to be transmitted and processed.
- Check your router status in the Cloudflare dashboard under Network flow > Configure Network flow > Check routers (visible during onboarding) or view analytics in the Network flow page.
- If data is not appearing, verify your Flow Exporter settings and confirm your router's public IP address matches the IP registered with Cloudflare.