linux網(wǎng)絡(luò)流量實(shí)時(shí)監(jiān)控工具之iptraf
[我的Linux,讓Linux更易用]IPTraf是一個(gè)網(wǎng)絡(luò)監(jiān)控工具,功能比nload更強(qiáng)大,可以監(jiān)控所有的流量,IP流量,按協(xié)議分的流量,還可以設(shè)置過濾器等,如下圖
對(duì)監(jiān)控網(wǎng)絡(luò)來說,這個(gè)更適合也更強(qiáng)大,但在總的流量顯示上,沒nload直觀和方便
官網(wǎng)及下載 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
使用
直接運(yùn)行 iptraf
后有一個(gè)如下的菜單提示,然后進(jìn)入相關(guān)的選項(xiàng)查看
IP流量監(jiān)視(IP traffic monitor)
網(wǎng)絡(luò)接口的一般信息統(tǒng)計(jì)(General Interface Statistics)
網(wǎng)絡(luò)接口的細(xì)節(jié)信息統(tǒng)計(jì)(Detailed Interface Statistics)
統(tǒng)計(jì)分析(Statistical Breakdowns)
局域網(wǎng)工作站統(tǒng)計(jì)(LAN Station Statistics)
過濾器(Filters...)
配置(Configure...)
退出(Exit)
也可以直接加參數(shù)或選項(xiàng)直接進(jìn)入
可以查看還有哪些參數(shù)和選項(xiàng)
[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
歡迎轉(zhuǎn)載,但請(qǐng)保留此信息