| | 1 | = using `iftop` = |
| | 2 | |
| | 3 | If you've got a gateway machine for a LAN, and the LAN is seeing congestion on the upstream link, you might want to figure out which client is causing the most traffic. |
| | 4 | |
| | 5 | You should: |
| | 6 | {{{ |
| | 7 | aptitude install iftop |
| | 8 | }}} |
| | 9 | |
| | 10 | then, (also as the superuser), do: |
| | 11 | |
| | 12 | {{{ |
| | 13 | iftop -i "$LAN" |
| | 14 | }}} |
| | 15 | (where `$LAN` is the name of your internally-connected interface). |
| | 16 | |
| | 17 | then press `s` once to "hide the source hosts" (this seems backwards to me -- shouldn't it be "dest"?), which causes `iftop` to aggregate throughput by local machines. you can then press 1, 2, or 3 to sort by total traffic in the last 2, 10, or 40 seconds, respectively. If there's a single culprit, it should rise to the top. |