If you ever need to figure out what is eating bandwidth on a server, tcpdump comes in handy…

tcpdump -n -i any

That will spew out everything, so you might be able to find anything that looks suspicious in there. Say you find the IP address of doing something suspicious, you can zero in on them to see if they are doing anything naughty like so:

tcpdump -n -i any host

In my case, someone was utilizing one of my DNS servers for about 200 lookups per second (not logging DNS lookups and it’s UDP traffic so it was hard to figure out where the bandwidth was going).

Once you find a naughty IP address, now just block them like so:

route add -host reject (Linux)


route add -host -reject (Mac OS X/BSD)

3 thoughts on “tcpdump”

Leave a Reply

Your email address will not be published. Required fields are marked *