Main Menu

Search

LINUX: How to capture TCPDUMPs on specific IP and Port number?

Below is tcpdump command to run capture packets on specific IP and port.
tcpdump -i any host  and port  -w /tmp/filename.pcap 
In above command replace IP and Port number with the IP and port on which you want to capture the packets. Above command captures the tcpdumps to /tmp/filename.pcap file.

Products to which Article Applies
All Linux Operating Systems

Article Author: Tarun Boyella

No comments:

Post a Comment