fastnetmon-ng/README.md

72 lines
1.6 KiB
Markdown
Raw Normal View History

2013-10-18 12:09:53 +02:00
fastnetmon
2013-10-20 00:10:19 +02:00
=/=========
2013-10-18 12:09:53 +02:00
FastNetMon - High Performance Network Load Analyzer with PCAP/ULOG2 support
2013-10-18 12:21:41 +02:00
Install
```bash
2013-10-18 12:24:42 +02:00
# Debian
apt-get install -y git libpcap-dev g++ gcc libboost-all-dev
# CentOS
yum install -y git libpcap-devel gcc-c++ boost-devel boost
2013-10-21 11:43:54 +02:00
# If you need traffic counting
2013-10-20 00:10:19 +02:00
apt-get install -y libhiredis-dev
2013-10-18 12:24:42 +02:00
git clone https://github.com/FastVPSEestiOu/fastnetmon.git
cd fastnetmon
2013-10-18 12:21:41 +02:00
```
2013-10-18 12:44:57 +02:00
Select backend, we use ULOG2 as default, if you need PCAP u must change variable ENGINE in build.sh to PCAP
2013-10-18 12:21:41 +02:00
Compile it:
2013-10-18 12:24:42 +02:00
```bash
2013-10-18 12:21:41 +02:00
./build.sh
2013-10-18 12:24:42 +02:00
```
2013-10-18 12:21:41 +02:00
2013-10-18 12:24:42 +02:00
Start it:
```bash
./fastnetmon
```
2013-10-18 12:44:57 +02:00
Server configuration for PCAP:
no configuration needed
Server configuration for ULOG2:
2013-10-18 13:01:30 +02:00
```bash
iptables -A FORWARD -i br0 -j ULOG --ulog-nlgroup 1 --ulog-cprange 32 --ulog-qthreshold 45
```
2013-10-18 12:21:41 +02:00
2013-10-18 12:44:57 +02:00
If you use PCAP, u can set monitored interface as command line parameter (u can set 'any' as inerface name but it work not so fine):
```bash
./fastnetmon br0
```
2013-10-18 13:35:50 +02:00
Example program screen:
```bash
Below you can see all clients with more than 2000 pps
Incoming Traffic 66167 pps 88 mbps
xx.yy.zz.15 3053 pps 0 Mbps
xx.yy.zz.248 2948 pps 0 Mbps
xx.yy.zz.192 2643 pps 0 Mbps
Outgoing traffic 91676 pps 728 mbps
xx.yy.zz.15 4471 pps 40 Mbps
xx.yy.zz.248 4468 pps 40 Mbps
xx.yy.zz.192 3905 pps 32 Mbps
xx.yy.zz.157 2923 pps 24 Mbps
xx.yy.zz.169 2809 pps 24 Mbps
xx.yy.zz 2380 pps 24 Mbps
xx.yy.zz 2105 pps 16 Mbps
Internal traffic 1 pps
Other traffic 25 pps
ULOG buffer errors: 2 (0%)
ULOG packets received: 19647
```
2013-10-19 17:24:42 +02:00
Author: Pavel Odintsov pavel.odintsov at gmail.com