D
D
Dwellss2021-12-08 23:37:28
linux
Dwellss, 2021-12-08 23:37:28

How to find out the source of outgoing traffic in linux?

I formulated the question very crookedly, I admit it :( I’ll tell you in 2 words what I need ...
So, there is a server. According to mrtg, it has outgoing traffic of 52.0 Mb / s, which is anomalous for subjective reasons. I have 10 domains on the server - there are maybe some kind of network activity monitor that could show who is consuming outgoing traffic?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Damian Lewis, 2021-12-09
@DamianLewis

netstat -utopa- will show the local address (computer name) of the one who is using the network NOT in real time .

Screen
60ee71ca9edf5994084861.png

iftop- real-time displays the local address (computer name), which sites are open, how much data is received and transmitted. Install sudo apt install iftop. To monitor only the desired network interface, find out the name of the interface using the command ifconfig. Then enter sudo iftop -i название интерфейса. Examplesudo iftop -i wlk30
Screen
60ee75d0eb55c493653544.png

nethogs- shows in real time what programs are using the network and how much data they receive or send. It will also show the username. You must run the command through sudo nethogsInstall nethogssudo apt-get install nethogs
Screen

60ee764ae2417823885615.png

S
Sergei Nazarenko, 2021-12-08
@nazares

Yes, full of them Otley in the corner

A
Armenian Radio, 2021-12-08
@gbg

iptraf, then ip ss (or netstat, old-fashioned)
The first one in the gui will show (in real time) through which ports the traffic is coming down. The second will show the correspondence between ports and processes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question