PDA

View Full Version : Installing IFTOP


pascal
02-12-2005, 09:09 AM
Hello,

iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts.

http://www.ex-parrot.com/~pdw/iftop/

How to install it

first, compile it from source for your OS

rpmbuild --rebuild --with <your_arch> http://carat-hosting.com/src/iftop-0.16-0.src.rpm

where <your_arch> is :

RedHat 9 = rht9x
CentOS 3.x = cos3x
Fedora 1 = fdr10
Fedora 2 = fdr20
White Box = whb3x


so for example, if you have a CentOS 3.x just do :
rpmbuild --rebuild --with cos3x http://carat-hosting.com/src/iftop-0.16-0.src.rpm


Then install the rpm

cd /usr/src/redhat/RPMS/i386/
rpm -ivh iftop-0.16-0.i386.rpm


Then launch it with :
#> iftop

USE IT AT YOUR OWN RISK

Pascal

IWorx-Chris
02-12-2005, 02:51 PM
Thanks a ton Pascal. iftop is a good tool to find bandwidth hogs or DOS soruces if you're being attacked.

Chris

pascal
02-13-2005, 08:50 AM
indeed, I installed it when my box was under dos attack :) and it really did help me to find who was consumming all my bandwidth :)

Pascal

pascal
04-16-2006, 06:24 AM
Hello,

UPGRADING or INSTALLING last version of IFTOP 0.17.1.
You must have ncurses and ncurses-devel

iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts.

http://www.ex-parrot.com/~pdw/iftop/

How to install it

first, compile it from source for your OS

rpmbuild --rebuild --with <your_arch> http://carat-hosting.com/rpms/srpm/iftop-0.17-1.src.rpm

where <your_arch> is :

RedHat 9 = rht9x
CentOS 3.x = cos3x
CentOS 4.x = cos4x
Fedora 1 = fdr10
Fedora 2 = fdr20
White Box = whb3x


so for example, if you have a CentOS 3.x just do :
rpmbuild --rebuild --with cos3x http://carat-hosting.com/rpms/srpm/iftop-0.17-1.src.rpm

or

wget http://carat-hosting.com/rpms/srpm/iftop-0.17-1.src.rpm
then rpmbuild --rebuild --with cos3x iftop-0.17-1.src.rpm




Then install the rpm

cd /usr/src/redhat/RPMS/your_arch/
rpm -Uvh iftop-0.17-1.your_arch.rpm


Then launch it with :
#> iftop

you may type h when iftop is launched to see help commands (like p to see port, n to not reslove dns, etc...)

USE IT AT YOUR OWN RISK

Pascal

Fr3d
04-16-2006, 09:18 AM
Ooooh that's a nice tool :)

Thanks pascal :D

IWorx-Tim
04-16-2006, 12:32 PM
Very slick, thanks Pascal! -- I got it installed on my CentOS 4.3 box in under 5 minutes :-)