Open laoshaw opened 3 years ago
I cannot help you how to configure nfdump
since I never used it.
To see the flows you need to add rules into desiring iptables chains with NETFLOW
target. For example, iptables -I INPUT -j NETFLOW
, iptables -I FORWARD -j NETFLOW
.
Yes I set the iptables chain up(iptables -N NETFLOW, iptables -I INPUT -j NETFLOW, iptables -I FORWARD -j NETFLOW, iptables -I OUTPUT -j NETFLOW), otherwise nfdump(the open source command line collector) will see nothing from ipt-netflow, it appears all is working except there is no info about packet/byte counts, /proc/net/nf_conntrack has the used packets/bytes per flow as expected.
Hello
did you ever figure this out? Did a capture and seems ipt-netflow does not send the information (my guess is some kernel/dependency mismatch, but haven't had time to troubleshoot yet).
From captured netflow packet: Packets: 0 Octets: 0
Figured out what the problem was on my end
libipt_NETFLOW.so and libip6t_NETFLOW.so never got copied to /usr/lib/x86_64-linux-gnu/xtables/
cp libipt_NETFLOW.so /usr/lib/x86_64-linux-gnu/xtables/
cp libip6t_NETFLOW.so /usr/lib/x86_64-linux-gnu/xtables/
after issuing these two commands, and then reloading the module it works as expected on my end
Just installed ipt-netflow and got it run, nfdump reports many flows but all their packets and bytes are 0 while flows is 1:
How to get non-zero statistic data shown for each flow?
Additionally, my ipt_netflow_flows is always empty: