iptables -nvL FORWARD | grep NETFLOW
tcpdump -c5 -npi lo port 9996
Turn on autoload:
echo ipt_NETFLOW >> / etc / modules
Disable kernel update:
echo linux-image-2.6.38-bpo.2-amd64 hold | dpkg --set-selections
If the collector is on another computer, then at the time of loading the module, the interfaces and routing are not yet configured, the establishment of communication with the collector may end with a kernel error 101 (“destination unreached”). To bypass it, re-establish the connection from /etc/rc.local:
f = "/ proc / sys / net / netflow / destination"
test -e "$ f" && d = "$ (cat $ f)" && echo "$ d"> "$ f"