linux網路流量實時監控工具之iptrafIPTraf是一個網路監控工具,功能比nload更強大,可以監控所有的流量,IP流量,按協議分的流量,還可以設置過濾器等,如下圖對監控網路來說,這個更適合也更強大,但在總的流量顯示上,沒nload直觀和方便官網及下載 http://iptraf.seul....
linux網路流量實時監控工具之iptraf
IPTraf是一個網路監控工具,功能比nload更強大,可以監控所有的流量,IP流量,按協議分的流量,還可以設置過濾器等,如下圖
對監控網路來說,這個更適合也更強大,但在總的流量顯示上,沒nload直觀和方便
官網及下載 http://iptraf.seul.org/download.html
ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/iptraf-3...
http://dl.wdlinux.cn:5180/soft/iptraf-3.0.0.tar.gz
源碼安裝
wget ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz
tar zxvf iptraf-3.0.0.tar.gz
cd iptraf-3.0.0
./Setup
yum方式安裝
yum install -y iptraf
使用
直接運行 iptraf
後有一個如下的菜單提示,然後進入相關的選項查看
IP流量監視(IP traffic monitor)
網路介面的一般信息統計(General Interface Statistics)
網路介面的細節信息統計(Detailed Interface Statistics)
統計分析(Statistical Breakdowns)
區域網工作站統計(LAN Station Statistics)
過濾器(Filters...)
配置(Configure...)
退出(Exit)
也可以直接加參數或選項直接進入
可以查看還有哪些參數和選項
[root@wdlinux iptraf-3.0.0]# iptraf -h
Syntax:
iptraf [ -f ] [ { -i iface | -g | -d iface | -s iface | -z iface |
-l iface } [ -t timeout ] [ -B ] [ -L logfile ] [-I interval] ]
Issue the iptraf command with no parameters for menu-driven operation.
These options can also be supplied to the command:
-i iface - start the IP traffic monitor (use "-i all" for all interfaces)
-g - start the general interface statistics
-d iface - start the detailed statistics facility on an interface
-s iface - start the TCP and UDP monitor on an interface
-z iface - shows the packet size counts on an interface
-l iface - start the LAN station monitor ("-l all" for all LAN interfaces)
-B - run in background (use only with one of the above parameters)
-t timeout - when used with one of the above parameters, tells
the facility to run only for the specified number of
minutes (timeout)
-L logfile - specifies an alternate log file for any direct invocation
of a facility from the command line. The log is placed in
/var/log/iptraf if path is not specified.
-I interval - specifies the log interval for all facilities except the IP
traffic monitor. Value is in minutes.
-f - clear all locks and counters. Use with great caution.
Normally used to recover from an abnormal termination.
IPTraf 3.0.0 Copyright (c) Gerard Paul Java 1997-2004
本文屬於轉載,轉自:http://www.wdlinux.cn/old/iptraf
本人註:網路上大量的說明都是基於apache的,所以如果是nginx的話,所有的命令需要再後面加上-ng 。
例:iptraf-ng