If we want to see everything which source IP is 192.168.0.205 we can use this kind of filter (src = source):
and if we want to see everything which destination IP is 192.168.0.205 we can use this kind of filter (dst = destination):
Sometimes we want to see everything but not the traffic what comes from our own computer (let’s say that our computer IP is 192.168.0.206):
this will filter out everything what has something to do with IP 192.168.0.206
If we want to see everything what has something to do with our computer we can use this kind of filter:
or with /24 you can use:
Sometimes we only want to see traffic from specific port. Let’s say we want to see all traffic on port 80:
If we only want to see all traffic on port 80 from/to our computer we can combine two filter together and use:
So you have to use && when you want to combine two or more parameters(?)
If we want to filter everything with MAC-address 00:11:22:33:44:55 we can use filter like this:
of course we can combine all of these so if we example want to see TCP port 22 traffic from a device which MAC-address is 00:11:22:33:44:55 we can use this kind of filter:
If we want to see all traffic which goes to TCP port 22 we can use filter like this:
Or all traffic which comes from TCP port 22:
So if we want to see all traffic what comes from IP 192.168.0.206 and goes to TCP port 22 filter will look like this:
If we want to see all traffic but not which use TCP port 22 we use this kind of filter:
If you want to filter UDP ports just use udp.port instead of tcp.port and so on
If you for some weird reason only want to see ICMP traffic then just use filter:
and if you want to see everything else but not ICMP traffic filter will of course be:
If you want to see traffic which contains example word “password” on frame you can use filter like this:
If you want to sniff ftp password and login you can combine two filter:
We can also use contains example with http.user_agent like this:
With that filter we will display only traffic which http.user_agent contains word MSIE 8.0
Of course you can use only MSIE if you don’t care which version of IE user if using:
Some protocol you can filter just with their name example spanningtree (stp):
filters all stp traffic away but if you example just want to see DNS traffic just use filter
or just DHCP traffic:
| == | means | is |
| && | means | AND |
| || | means | OR |
| ! | means | NOT |







Correction –
ip.addr != 192.168.0.206 does not “filter out everything what has something to do with IP 192.168.0.206″ – Notice the yellow (warning) background when you try it.
This should be !ip.addr==192.168.0.206.
Laura
That’s true. Thank you so much about your comment =) I will fix that ASAP.