Follow the instructions in the Configuring capture filters recipe and configure filters as follows:
- To capture packets to port 80 (HTTP), configure dst port 80 or dst port http
- To capture packets to or from port 5060 (SIP), configure port 5060
- To capture all TCP packets that starts a connection (all packets with syn=1), configure tcp-syn != 0
- To capture the start (syn flag) and end (fin flag) packets of all TCP connections, configure tcp[tcpflags] & (tcp-syn|tcp-fin) != 0
In tcp[tcpflags] & (tcp-syn|tcp-fin) != 0, it is important to note that this is a bitwise AND operation, not a logical AND operation. For example, 010 or 101 equals 111, and not 000.
- To capture all TCP packets with the rst (reset) flag set to 1, configure ...