Linux: Покажете мрежовия трафик - как работи
В този практичен съвет ще ви покажем как да показвате мрежовия си трафик в Linux. Има голямо разнообразие от инструменти за команден ред и малки програми, които могат да анализират вашата мрежа.
Linux: Показвайте мрежовия трафик с Etherape
- Отворете терминален прозорец и инсталирайте пакета etherape с командата "sudo apt-get install etherape" (без кавички).
- Сега стартирайте Etherape или чрез менюто, или директно през терминала с командата "sudo etherape".
- Кликнете върху „Придобиване“ в менюто на Etherape и изберете вашия тип връзка (напр. WLAN) под „Интерфейси“. След това кликнете върху "Старт".
- В зависимост от прехвърления обем, текущите връзки се показват с дебели свързващи линии. Пасивните връзки са представени от тънки ленти. Можете да разберете различните видове трупи по цвят.
- Освен това можете да инсталирате програмата Wireshark. С командата "sudo apt-get install wireshark" получавате тази програма за мрежов анализ на вашата Linux система.
Вижте мрежовия трафик от терминала
- Отворете прозорец на терминал и инсталирайте инструмента за команден ред с командата "sudo apt-get install ethstatus" (без кавички).
- Стартирайте инструмента със следната команда: "ethstatus -i име на интерфейс-спецификация на скоростта". В пример може да изглежда така: "ethstatus -i wlan0 -S 6m".
- Освен това можете да инсталирате netstat или iftop.
Прочетете също как да промените правата за достъп в Linux.