Open AlberichVR opened 4 years ago
(1) what do you get for "ldd /etc/hsflowd/modules/mod_nflog.so". Does it find all the libraries it needs?
(2) you can run with debug logging like this:
sudo systemctl stop hsflowd sudo hsflowd -dddd
Or maybe like this to look for output from mod_nflog.c:
sudo hsflowd 2>&1 | grep NFLOG
You will probably need to match your configured sampling-rate to the NFLOG probability, and you will probably need to generate significant traffic too. A good way to generate 100-200 packets/sec is like this:
sudo ping -i 0.01
Thanks for your input. I will try all this as soon as I can (right now I don't have access to my server...).
Hello, I installed hsflowd on a server (Debian 9.12) to monitor traffic on it (packet sampling). After configuring the hsflowd.conf file, I fetched the datagrams with a collector by using sflowtool. I receive countersamples but never flowsamples. Here is my hsflowd.conf file:
I ran beforhand the commands to configure NFLOG in iptables as it is explained. I also restarted hsflowd after modifying the conf file. I also tried another configuration (after making sure eth0 is the name of the network interface) :
Is packet-sampling not supported on my server or did I miss something ?
Thanks in advance for your answer,
AlberichVR