How to find out traffic on a specific port in Linux

I am looking to find traffic through a specific port for a time interval. For example, traffic through port 3306 for 10 seconds. Is there any way to find this information?

I see that "/ sbin / ifconfig eth0 05" can be used to get information about common bytes, but I'm looking for information about specific port traffic.

Thanks in advance,

+6
source share
1 answer
tcpdump -i eth0 -s 1500 port 3306 
+14
source

Source: https://habr.com/ru/post/915407/


All Articles