Sunday, January 25, 2009

tcpdump simple examples

tcpdump is the elder statesman of packet sniffers. in practice, it is often the first utility you turn to when you want to get a look at traffic on your network.


packet sniffing on a given interface

ex:
tcpdump - i eth0
tcpdump -c 100 -i eth0 -w my_sniffed_ packets
tcpdump -r my _sniffed_ packets > my_packets_ text
tcpdump | grep -v ssh

No comments:

Post a Comment