iftop est un outil de monitoring réseau, et plus particulièrement, analyseur de bande passante.
Voici un aperçu de iftop :
Code : Tout sélectionner
          10b                 1.00kb              100kb               10.0Mb         1.00Gb
└─────────┴───────────────────┴───────────────────┴───────────────────┴────────────────────
192.168.0.100                   => 192.168.0.253                    2.19Mb  2.30Mb  2.30Mb
                                <=                                   640b    870b    755b
192.168.0.100                   => 192.168.1.5                      1.45kb  1.18kb  13.6kb
                                <=                                   208b    208b   1.59kb
192.168.0.100                   => 192.168.1.7                         0b      0b    160b
                                <=                                     0b      0b     65b
───────────────────────────────────────────────────────────────────────────────────────────
TX:             cum:   48.5MB   peak:   2.42Mb             rates:   2.20Mb  2.30Mb  2.32Mb
RX:                    34.5kB           25.1kb                       848b   1.05kb  2.39kb
TOTAL:                 48.5MB           2.45Mb                      2.20Mb  2.30Mb  2.32MbAvant tout, il faut installer iftop :
Code : Tout sélectionner
pi@raspberrypi ~ $ sudo aptitude install iftopCode : Tout sélectionner
pi@raspberrypi ~ $ sudo iftopCode : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -i eth0Code : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -i anyCode : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -f "port 80"Code : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -f "host 192.168.0.1"Code : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -f "host 192.168.0.1 AND port 80"Code : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -f "port 80 OR port 443 OR port 8080"Code : Tout sélectionner
pi@raspberrypi ~ $ sudo iftop -i any -f "port http OR port https OR 8080 AND host 192.168.0.1 OR host www.google.com"Cette commande ne possède pas une tonne de paramètres, mais ceux-ci peuvent être configuré pendant dans iftop directement, ce qui permet d'affiner les résultats que la commande nous donne.
Amusez-vous, avec modération, avec cette commande.
