by nbzso · 4y ago · 0 comments
The amount of data captured by tcpdump can be minimized by only capturing syn/fin/rst packets assuming proto 6 tcp.
'tcp[tcpflags] & (tcp-syn|tcp-fin|tcp-rst) != 0'
And if capturing to a file one can also limit the total number of packets captured with -c 1000
This may be useful if you are also capturing proto 17 udp.