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,
Open source: Must-read coverage To check for a specific port such as 443, run nmap -p 443 microsoft.com . You can check multiple ports such as 80 and 443 with nmap -p 80,443 microsoft.com .
Check If a Port is Open in Linux Using netstat The first method to check if a port is open in Linux is by running the netstat command. This command displays network connections, routing tables, and many network interface statistics.
tcpdump -i eth0 -s 1500 port 3306
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With