1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-26 20:26:16 +02:00

Add manual for host host-sflow install on Debian

This commit is contained in:
Pavel Odintsov 2015-06-24 14:00:39 +03:00
parent b0b9cb46ab
commit 7a35de7b77

View File

@ -1,5 +1,7 @@
### This article will describe everything about sFLOW from hardware side
### Extreme
Please be aware! Extreme XOS operating system before 15.4 release lack of support for ingress sflow, only for egress ([source](http://extrcdn.extremenetworks.com/wp-content/uploads/2014/01/EXOS_Command_Reference_Guide_15_4.pdf)). Please use 15.4 version or more recent.
Example of sFLOW configuration for Extreme XOS:
@ -32,4 +34,44 @@ Port Status Sample-rate Subsampling
2:39 enabled 1024 / 1024 1
```
### Juniper EX
Juniper EX sFLOW configuration: [link](http://kb.juniper.net/InfoCenter/index?page=content&id=KB14855).
### sFLOW configuration on Linux
We recommend this [project](http://host-sflow.sourceforge.net/).
You could use this reference for configurarion on Debian 8 Jessie BOX:
```bash
cd /usr/src
wget 'http://downloads.sourceforge.net/project/host-sflow/Latest/hsflowd_1.27.3-1_amd64.deb?r=&ts=1435142676&use_mirror=netcologne' -Ohsflowd_1.27.3-1_amd64.deb
dpkg -i hsflowd_1.27.3-1_amd64.deb
```
Configure iptables:
```bash
MOD_STATISTIC="-m statistic --mode random --probability 0.0025"
ULOG_CONFIG="--ulog-nlgroup 1 --ulog-prefix SFLOW --ulog-qthreshold 1"
iptables -I INPUT -j ULOG $MOD_STATISTIC $ULOG_CONFIG
iptables -I OUTPUT -j ULOG $MOD_STATISTIC $ULOG_CONFIG
```
Configure daemon ```vim /etc/hsflowd.conf```:
```bash
DNSSD=off
ulogGroup = 1
ulogProbability = 0.0025
collector {
ip = 127.0.0.1
udpport = 6343
}
```
Let's start:
```bash
systemctl restart hsflowd
```