When talking about host and network filters, we refer to layer 3 filters that are IP address-based filters. In this recipe, we will refer to these filters and what we can do with them.
Configuring hosts and network filters
Getting ready
The basic layer 3 filters are:
- ip or ip6: To capture IP or IPv6 packets.
- host <host>: To get a hostname or address.
- dst host <host>: To get a destination hostname or address.
- src host <host>: To get a source hostname or address.
A host can be an IP address or a hostname related to this number. You can type, for example, a filter host www.packtpub.com that will show you all packets to/from the IP address related to the Packt website.
- gateway <Host name or address>...