basforge

Search titles, text and the “If it doesn’t work” cases.

    RU
    Topic · Linux

    tcpdump

    Terminal packet capture, BPF filters, .pcap files and troubleshooting from dumps

    Entries
    10
    Cases
    26
    Updated
    2026-11-24
    Series · where to startOverview

    tcpdump: capturing and reading traffic in a Linux terminal

    tcpdump reads packets straight off a network interface through an AF_PACKET socket and the kernel BPF filter — on any server over SSH, with no GUI or heavy dependencies. It shows what hits the wire and comes back when application logs stay silent or contradict each other.

    Read the overview
    1. Running & output · Manualtcpdump basics: running captures, reading output, flags, and .pcap filesPicking an interface, flags -nn, -c, -v, -A, writing .pcap files, and reading every field of an output line.
    2. BPF filters · ManualBPF filters in tcpdump: syntax, logic, and the tcp[13] byteSelecting the packets you need in the kernel: host, net, port, boolean logic, the tcp[13] flags byte, and checking bytecode with -d.
    3. Troubleshooting · ManualTroubleshooting failures with tcpdump: five practical scenariosFive real dump walkthroughs: firewall DROP, RST, MTU black hole, DNS, TLS SNI, and capturing inside a container.
    4. Cheat sheet · Cheat sheettcpdump cheat sheet: flags, BPF filters, and .pcap captureLaunch flags, ready-to-use BPF filters, file rotation, and reading .pcap dumps on one screen.

    Tips

    5