en:nfsen_full_netflow [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:nfsen_full_netflow [2015/04/05 10:59] – created translator1en:nfsen_full_netflow [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-1. First, add the new data receiver to nfsen configuration: 
-<code> 
-vi /usr/local/nfsen/etc/nfsen.conf 
-  
-%sources = ( 
-'protocols' => { 'port' => '9997', 'col' => '#00ff00', 'type' => 'netflow' }, 
-'directions' => { 'port' => '9998', 'col' => '#ffff00', 'type' => 'netflow' }, 
-'full' => { 'port' => '9999', 'col' => '#114422', 'type' => 'netflow' } 
-); 
-</code> 
  
-2. Second, activate configuration changes: 
-<code> 
-/usr/local/nfsen/bin/nfsen reconfig 
-</code> 
-  
-3. Enable receiving UDP to port 9999 in iptables: 
-<code> 
-vi /etc/sysconfig/iptables 
--A INPUT -m state --state NEW -m udp -p udp --dport 9999 -j ACCEPT 
-service iptables restart 
-</code> 
-  
-4. Activate sending the full netflow on DPI: 
-<code> 
-vi /etc/dpi/fastdpi.conf 
-netflow=11 
-netflow_full_collector=127.0.0.1:9999 
-netflow_passive_timeout=20 
-netflow_active_timeout=60   
-service fastdpi restart 
-</code> 
-  
-nfsen is not the best tool to study the full netflow. However, it allows to build simple reports (check the page Netflow Processing: for example, top by IP). 
- 
-Full netflow sends the original port number by default. Therefore the report by protocols does not work. In order to activate coding of the protocol's information in a port number you have to activate configuration parameter netflow_full_port_swap=1