Emergency CheatsheetCODE: 025-TCPDUMP-PACKET-ANALYSIS⏱️ ~10 min read

tcpdump Packet Analysis: Capturing & Filtering Linux Network Traffic

Filter packets by IP, port, TCP flags (SYN, RST, FIN), capture HTTP headers, and export pcap dumps for Wireshark inspection.

Authored by: Vibe DevOps · Published: 10/30/2026

Full Poster Preview

Size: 1080×1350 (4:5)Enlarge or download for reference

Diagnose TCP handshake drops, SYN floods, packet retransmissions, and unexpected RST connection closures at the packet level.

1. Targeted Host and Port Capture

sudo tcpdump -nn -i any host 10.0.0.5 and port 443 -c 100

2. Filtering SYN and RST Flags

sudo tcpdump -nn -i any "tcp[tcpflags] & (tcp-syn|tcp-rst) != 0"

3. Writing PCAP Files for Wireshark

sudo tcpdump -w incident_$(date +%s).pcap -i eth0 -C 50 -W 5

💡 Team Storage & Usage Tips

Store the vector PDF in your internal team repository (Notion, Confluence) or print it out in A4 format next to your workstation for rapid troubleshooting during midnight production outages.