Linux: parādiet tīkla trafiku - kā tas darbojas
Šajā praktiskajā padomā mēs parādīsim, kā parādīt tīkla trafiku Linux. Jūsu tīklā var analizēt dažādus komandrindas rīkus un mazas programmas.
Linux: parādiet tīkla trafiku, izmantojot Etherape
- Atveriet termināla logu un instalējiet ētera paketi ar komandu "sudo apt-get install etherape" (bez pēdiņām).
- Tagad sāciet Etherape, izmantojot izvēlni vai tieši caur termināli ar komandu "sudo etherape".
- Etherape izvēlnē noklikšķiniet uz "Iegūšana" un sadaļā "Interfeisi" atlasiet savienojuma veidu (piemēram, WLAN). Pēc tam noklikšķiniet uz "Sākt".
- Atkarībā no pārsūtītā skaļuma pašreizējie savienojumi tiek parādīti ar biezām savienojošām līnijām. Pasīvos savienojumus attēlo plānas sloksnes. Dažādos žurnālu veidus var noteikt pēc krāsas.
- Kā alternatīvu varat instalēt arī programmu Wireshark. Ar komandu "sudo apt-get install wirehark" jūs iegūstat šo programmu tīkla analīzei savā Linux sistēmā.
Skatīt tīkla trafiku no termināļa
- Atveriet termināļa logu un instalējiet komandrindas rīku ar komandu "sudo apt-get install ethstatus" (bez pēdiņām).
- Sāciet rīku ar šādu komandu: "ethstatus -i interfeisa nosaukums -S ātruma specifikācija". Piemēram, tas varētu izskatīties šādi: "ethstatus -i wlan0 -S 6m".
- Varat arī instalēt netstat vai iftop.
Izlasiet arī to, kā mainīt piekļuves tiesības Linux.