You set up NetFlow on your router, open the collector, and the downloads look wrong: the traffic coming in from the internet is shown against your public IP address, or against the router itself, instead of the laptop or server inside that actually downloaded it. Uploads look fine. This is one of the most common questions on vendor forums, and it is not your fault: it comes from how NAT and NetFlow meet.
Why it happens
Your inside hosts have private addresses (for example 192.168.88.10). The router translates them to its WAN address on the way out (NAT, «masquerade»). NetFlow records describe packets as the router sees them on the interface:
- Upload (inside → internet): the record's source is the inside host. The collector sees who sent it.
- Download (internet → inside): the reply arrives at the router addressed to its WAN address. Many devices export that reply with the WAN address as the destination, and put the real inside host into separate post-NAT fields (IPFIX elements 225–228,
postNATSourceIPv4Address,postNATDestinationIPv4Addressand their ports; 281–282 for IPv6).
A collector that reads only the ordinary source and destination puts every download on the WAN address. That is the «public IP instead of the LAN host» people see.
It gets worse when the provider puts its own NAT in front of you (CGNAT, or a router behind an ISP box): then the WAN address is private too, and some collectors show all downloads as traffic of the router, for example «RTR1 (self)».
How FlowSphera handles it
FlowSphera reads the post-NAT fields. For a download, when the destination is a public address, or one of the router's own addresses (also a private one behind the provider's NAT), and the post-NAT destination is an inside host, it records the inside host as the one that downloaded and keeps the WAN address as the NAT address. You see both in the raw records.
The router's own addresses come from three places: the address it exports from, the addresses you give for its WAN interfaces, and, since FlowSphera 2.12.1, the translated address it shows in its own upload records, learned automatically.
1. Export the post-NAT fields
Use NetFlow v9 or IPFIX, not v5: version 5 has no place for NAT fields.
On MikroTik RouterOS 7 the post-NAT fields are in the v9 and IPFIX templates; the usual setup is enough:
/ip traffic-flow set enabled=yes interfaces=all active-flow-timeout=1m
/ip traffic-flow target add dst-address=<FlowSphera address> port=2055 version=ipfix
The full walk-through is in Configure NetFlow on MikroTik.
On FortiGate the reply records already carry the inside host as the destination, so downloads land on the right host without extra steps: Configure NetFlow on FortiGate.
For other devices, check that the export template contains fields 225–228. If a device does not export post-NAT fields at all, no collector can recover the inside host from that record; then export from the LAN-side interfaces, where the packets still carry the inside addresses.
2. Mark the WAN interface
In FlowSphera open Settings → Devices. The Interfaces table lists every interface index the collector saw in the last 24 hours. Give the internet-facing one the role WAN (internet); FlowSphera marks the most likely candidate with «looks like WAN».
The WAN role tells FlowSphera for certain what is upload and what is download. Without it, direction is guessed from private and public addresses, which fails exactly when the WAN address itself is private.
3. If the provider's NAT is in front of you
When your router's WAN address is private (CGNAT, an ISP router in front, a lab), FlowSphera 2.12.1 and newer recognise it as the router's own address and still put downloads on the inside host. To be explicit, enter the WAN interface's address for that interface in Settings → Devices.
4. Check the result
Download something large on one inside host, then open Usage or Find a host for that host. The download should appear on it, not on the router. In the raw records of that conversation the inside host is the inside address and the WAN address is shown as NAT.
If the download is still on the router, check in this order: the export version (v9 or IPFIX), the WAN role on the right interface, and the FlowSphera version (the Version card in Settings → General, or flowsphera version on the server; 2.12.1 or newer for a WAN behind the provider's NAT).
What this was checked on
Checked on MikroTik RouterOS 7.17 (CHR) in a test lab with a WAN behind a provider's CGNAT, with FlowSphera 2.12.1: the same 150-second download was put on the router by FlowSphera 2.12.0 and on the inside host by 2.12.1. The public-WAN case was checked earlier on a MikroTik hAP ac² in our own network.
Questions
Why does my NetFlow collector show my public IP for all downloads?
The router exports the reply with its WAN address as the destination and puts the real inside host into the post-NAT fields (IPFIX 225–228). A collector that ignores those fields puts every download on the WAN address.
Does NetFlow v5 carry NAT information?
No. Version 5 has a fixed record without NAT fields. Use NetFlow v9 or IPFIX.
My router is behind the provider's NAT (CGNAT). Does it still work?
Yes, with FlowSphera 2.12.1 or newer: the router's private WAN address is recognised as its own, and downloads go to the inside host.