# Filters

**Filter packets by IP**

```
ip.addr==<ip>
```

**Filter packets sent from a specific address**

```
ip.src==<ip>
```

**Specify destination IP**

```
ip.dst==<ip>
```

**Filter traffic by request method**

```
http.request.method == POST
```

**Filter ARP traffic**

```
arp
```

**Filter HTTP traffic**

```
http
```

**Filter ICMP traffic**

```
icmp
```

**Filter HTTP or DNS traffic**

```
http or dns
```

**Filter HTTP or DNS traffic coming from specific address**

```
ip.addr==<ip> and (dns or http)
```

**Don't capture HTTP traffic from a specific IP**

```
http and ip.src!=<ip>
```

**Filter traffic from specific tcp port**

```
tcp.port==<port>
```

**Filter traffic from specific udp port**

```
udp.port==<port>
```

**Capture packets with SYN flag enabled**

```
tcp.flags.syn==1
```

**Capture packets with SYN and ACK**

```
tcp.flags.syn==1 and tcp.flags.ack==1
```

**Capture packets with SYN and ACK inside a subnet**

```
tcp.flags.syn==1 and tcp.flags.ack==1 and ip.addr==192.168.1.0/24
```

**Filter packets by string**

```
tcp contains "string"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ecpptv2-certification.certs-study.com/network-security/scanning/wireshark/filters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
