문제

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

I see that "/sbin/ifconfig eth0 05" can be used to get information on total bytes but I am looking to find information about specific port's traffic.

Thanks in advance,

도움이 되었습니까?

해결책

tcpdump -i eth0 -s 1500 port 3306

다른 팁

sudo iftop -P -n -N -m 10M -f 'port 3260'
  • -P display ports
  • -n no hostname lookup
  • -N display ports not service names
  • -m limit for bandwidth scale
  • -f filter rule
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top