How to capture TCP/SYN packets?

If you only want to capture TCP/SYN packets, the capture filter would be: When you are not only interested in the SYN packets, but also the SYN/ACK packets this changes to: If I read your question in another way, you are looking for “all packets belonging to a TCP session for which the SYN packet is actually in the capture file”.
For More Information Please Refer:

You May Also Like to Read: