Exporting NetFlow Traffic to Multiple Servers

Exporting NetFlow Traffic to Multiple Servers

Until now we have wrote about different ways and options for exporting and collecting NetFlow traffic. Today we will go one step further in this area... 

Often it is necessary to export NetFlow traffic on more than one server (production, development, test...). Having in mind that Cisco, Juniper and other devices can often export NetFlow data only on two devices, there is a need for NetFlow traffic multiplication tools.

One of these tools is Samplicator. It is a software package for Linux that listens to UDP datagrams at defined port and sends copies to set of other IP addresses we define.

Here is a explanation how to do it:

  1. Download latest Samplicator version here
  2. Unpack: tar -zxf samplicator-x.y.z.tar.gz
  3. Go to directory: cd samplicator-x.y.z
  4. As a root run configure script: ./configure
  5. Make command to make binary files: make
  6. Then install application with command: make install
  7. Softver will run with command: samplicate

​In This example NetFlow Samplicator Server receives traffic from exporter via port 2000, and then sends copies to multiple NetFlow Servers via port 2055:

samplicate -S -f -p 2000

There are also some optional commands to use:

​-p <port> ​UDP port to accept flows on (default 2000)
​-s <address>
​Interface address to accept flows on (default any)
​-d​Debug level
-b​​Set socket buffer size ( default 65536)
-n​​Do not compute UDP checksum (leave at 0)
​-S​Maintain (spoof) source address.
​-x <delay>​Transmission delay in microseconds.
​-c​Specify a config file to read.
-f​Fork. This option sets samplicate to work as background process.

Help command in this case would be:

samplicate -h

​This should be a very easy way of enabling export to multiple servers and could be a extremely helpful when you need Test and Production being separated. 

Flow export configuration on Cisco network devices
2 Ways of Exporting Without Netflow Capable Device

Related Posts

By accepting you will be accessing a service provided by a third-party external to https://www.netvizura.com/


Mailing and Visiting Address:
Soneco d.o.o.
Makenzijeva 24/VI, 11000 Belgrade, Serbia
Phone: +381.11.6356319
Fax: +381.11.2455210
sales@netvizura.com | support@netvizura.com


linkedin facebook facebook