tcpdump Capture Filter Builder

Compose a libpcap BPF capture filter and the exact tcpdump command line. The filter is built textually in your browser; nothing is captured, uploaded or sent anywhere.

Conditions

Passed to tcpdump -i; any captures on every interface.

Wraps the result in not (...), useful for excluding traffic.

Result

Build a filter to see the command.

    What it matches

    • Build a filter to see the conditions.

    Add -w capture.pcap to save packets, or -c 20 to stop after twenty. Filters are applied by libpcap before packets reach your terminal.