Hi,
I'm looking for a way to collect statistics about IPv4 and IPv6 traffic.
Primary I'm interested in the traffic that is outgoing and incoming from / to my network.
Before upgrading to OpenWRT 22.03 (from 18.?), I was using collectd with iptables plugin to do that job.
With the help of specific iptables rules that was working fine.
With InfluxDB I collected the traffic info and with Grafana I displayed the statistics.
Now with the switch from iptables to fw3/4 in OpenWRT, my approach doesn't work anymore.
After the upgrade to OpenWRT 22.03 I started to look into other options to create traffic statistics of my incoming and outgoing traffic.
Many tools seem to be focusing primary on IPv4, or the time range for the statistic cannot be freely chosen.
I tried to use netflowd in OpenWRT and send flows in v9 format to a collector. However, I couldn't get it to work with goNfCollector. The application seem to have a bug that prevents it from receiving v9 flows. But v9 for the flows is the precondition to collect IPv6 flow information.
Then I set-up a VM with ntop on a home server that is located close to the OpenWRT router and mirrored the switch port of my Mikrotik switch where the OpenWRT LAN interface is connected. This gives me the complete traffic between my local network and the OpenWRT router.
That works very well, except that for generating traffic statistics for IPv4 and IPv6, including configurable time ranges, one needs a 250 $ license per year. Which is a bit too expensive for home use-case without any commercial background.
Now the questions to the community:
How are you generating your traffic statistics?
Do you have any suggestions for me?
I can either use some application on OpenWRT, or run some more complex tool on a Linux container or inside a VM.
Thanks