Wireshark Display Filter & tcpdump BPF Capture Syntax Builder (2026)

Construct exact Wireshark display filters and matching tcpdump Berkeley Packet Filter (BPF) CLI commands for SYN scans, ARP spoofing, TLS handshakes, DNS tunneling, and HTTP anomalies.Documentation & FAQs ↓

Wireshark Display Filter & tcpdump BPF Syntax Builder — Interactive Console
Runs locally in your browser • Instant output
Wireshark Display Filter
tcp && ip.src == 10.10.14.22 && ip.dst == 192.168.1.0/24 && tcp.port == 443 && tcp.flags.syn == 1 && frame contains "password" && !(tcp.port == 22 || tcp.port == 3389)
tcpdump BPF CLI Command
$ sudo tcpdump -i any -nn -v -s0 'tcp and src host 10.10.14.22 and dst net 192.168.1.0/24 and port 443 and (tcp[tcpflags] & (tcp-syn) != 0) and not port 22 and not port 3389' -A | grep -i --color "password"
Ready
Embed / Cite This Tool (Markdown & HTML)
GitHub / Reddit Markdown Badge[![Wireshark Display Filter & tcpdump BPF Syntax Builder](https://img.shields.io/badge/ZerosUniverse-Free_Tool-ff6a00)](https://www.zerosuniverse.com/tools/wireshark-tcpdump-filter-builder/)
Blog / Documentation HTML Citation<a href="https://www.zerosuniverse.com/tools/wireshark-tcpdump-filter-builder/">Wireshark Display Filter & tcpdump BPF Syntax Builder — ZerosUniverse</a>

2026 Wireshark Display Filter vs tcpdump BPF Capture Syntax Table

2026 Verified Reference
Quick Answer & 2026 Technical Summary (wireshark filter generator)Updated 2026 Standard

Wireshark uses two distinct filter engines: Berkeley Packet Filters (BPF, shared with `tcpdump`) filter raw packets at the kernel NIC driver before writing to disk (`host 10.0.0.5 and tcp port 443`), whereas Wireshark Display Filters parse deep Layer-7 protocol fields (`http.request.method == "POST"` or `tls.handshake.type == 1`) during post-capture analysis.

tcpdump -ni any 'tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-syn' -w syn_scan.pcap
Zero-Overhead Capture Flag: tcpdump -ni eth0 -s 0 -w capture.pcap
SYN-Only BPF Expression: tcp[13] == 2 (or tcp[tcpflags] == tcp-syn)
TLS SNI Hostname Filter: tls.handshake.extensions_server_name contains "domain"
Packet Analysis GoalWireshark Display Filtertcpdump BPF Capture FilterSOC / Network Triage Purpose
Isolate Host IP & Portip.addr == 10.10.14.5 && tcp.port == 443host 10.10.14.5 and tcp port 443Inspect bidirectional flow for a single endpoint
Detect TCP SYN Port Scanstcp.flags.syn == 1 && tcp.flags.ack == 0tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-synSpots Nmap -sS sweeps & SYN flood DDoS bursts
Hunt HTTP POST & Auth Flowshttp.request.method == "POST" || http.response.code >= 400tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)Extracts form logins, API calls & 4xx/5xx errors
Inspect TLS ClientHello & SNItls.handshake.type == 1 && tls.handshake.extensions_server_nametcp port 443 and (tcp[((tcp[12]&0xf0)>>2)] = 0x16)Identifies destination domain names inside HTTPS
Audit DNS Queries & AXFRdns.flags.response == 0 || dns.qry.type == 252port 53Detects C2 DNS tunneling & zone transfer attempts
Exclude Your Own SSH Session!(tcp.port == 22 && ip.addr == 192.168.1.50)not (tcp port 22 and host 192.168.1.50)Prevents feedback loop when running remote tcpdump
Advertisement

Step-by-Step Workflow

4 Easy Steps
01Phase 1

Choose a Threat Preset or Custom Protocol

Select a pre-built detection profile (e.g., Nmap SYN Scan, TLS ClientHello SNI, ARP Duplicate IP) or pick TCP, UDP, ICMP, DNS, HTTP, TLS, or SMB.

02Phase 2

Specify Source/Destination IPs, Subnets & Ports

Enter host IPs, CIDR blocks, and port numbers, and choose directional operators (Source, Destination, or Either).

03Phase 3

Configure TCP Flags & Payload Match Conditions

Toggle SYN, ACK, FIN, RST, PSH, or URG bits and optional payload substring/hex filters (frame contains).

04Phase 4

Copy Wireshark Filter, tcpdump, or tshark CLI

Paste the Display Filter directly into Wireshark's filter bar or run the generated tcpdump/tshark command on your Linux sensor.

Real-World Applications

PCAP Forensics & Incident Response

Isolate command-and-control beaconing, TLS Server Name Indication (SNI) domains, and lateral movement flows inside multi-gigabyte packet captures.

Production Server Packet Capture (tcpdump)

Craft precise kernel BPF capture filters (-nn -s0 -w) on headless Linux servers so only relevant packets are written to disk during live troubleshooting.

CEH Module 08 & Blue Team Certification Prep

Master the syntax differences between capture-time Berkeley Packet Filters (BPF) and post-capture Wireshark protocol dissectors.

Related Editorial GuideCEH Module 08: Packet Sniffing & Wireshark Analysis Guide
Read Tutorial →
Help Your Network

Found this tool helpful? Share it with colleagues:

100% free, private browser utility with zero server uploads. Spread the word!