Skip to content

tcpdump in Linux – how to inspect network traffic on a server

How to use tcpdump on a Linux server. Installation, choosing a network interface, filters by port, address and protocol, viewing packet contents, saving a capture to a file for Wireshark and examples of diagnosing DNS, HTTP and SSH connections. Tested on Debian 12 and tcpdump 4.99.