Re:A tcpdump tutorial and primer
by MichaelGG on Friday February 28, 2014 @02:09PM
(#7320788)
Command-line alternative to wireshark is tshark. tshark is much more capable, since you can use all the well-made Wireshark protocol dissectors.
[ Parent
| on HN ]
tshark also has a fabulous ring buffer feature that lets you run captures continuously while chunking the files up into manageable sizes.
e.g. -b filesize:100000 -b files:200 -w somefile
This will make a ring buffer of 200 * 100MB files.
After typing this, I realized this may have limited use cases, but I use it almost every day.
If you are on a system that doesn't have tshark, tcpdump provides the same functionality via the -C <file_size_in_MB> -W <num_files> flags.
e.g. -C 100 -W 200 -w somefile will get you the same circular ring of 200 100MB files.
Also, don't forget to add the -s 0 flag if you want to get the entire payload.
Re:A tcpdump tutorial and primer
by scott_karana on Friday February 28, 2014 @04:46PM
(#7321717)
It's a great ad-hoc solution for monitoring types of traffic. I've used it too. :-)