Install And Use Tcpdump on Ubuntu Linux

Tcpdump is a command line packet sniffer. Packet sniffer is a computer software that captures the incoming and outgoing traffic over a network. Tcpdump runs on all Unix/Linux operating system and it uses libpcap library to capture network traffic. Installing tcpdump on Ubuntu is very easy. You can install this by running a simple command on terminal.

apt-get install tcpdump

It can also be used to debug the network setup. Mostly tcpdump and wireshark are used combined. Network administrators capture the packets via tcpdump and then use wireshark to view/analyze these captured packets. “tcpdump -w” parameter is used to write out put of tcpdump to some file. Here is a list of tcpdump commands which are most commonly used.

  • “tcpdump -i eth0” is used to capture the udp traffic on eth0.
  • “tcpdump port test” is used to capture traffic at specified port (Specify port in place of ‘test’ ).
  • “tcpdump -c n” is used to stop capture after ‘n’ packets. Where ‘n’ could be any integer value.
  • “tcpdump -d any” is used to see traffic at all ports/interfaces.
  • “tcpdump -v” is used to display the verbose output.

Further you can explore more about tcpdump by using “man tcpdump” command on your Ubuntu terminal. Enjoy!

–>x3Cscript async src=””>x3C/script>x3Cscript>x3C/script>’);

قالب وردپرس

About Alyse Kalish

Alyse Kalish
As an Associate Editor for The SalesJobInfo, Alyse is proud to prove that yes, English majors can change the world. She calls many places home, including Illinois where she grew up and the small town of Hamilton where she attended Colgate University, but she was born to be a New Yorker. In addition to being an avid writer, Alyse loves to dance, both professionally and while waiting for the subway.

Leave a Reply

Your email address will not be published. Required fields are marked *