From wikistone
Revision as of 17:52, 8 April 2014 by Bill (talk | contribs) (Created page with "Monitor all traffic on port 25: tcpdump -vv -x -X -s 1500 -i eth1 port 25 * -vv : More verbose output * -x : When parsing and printing, in addition to printing the headers of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Monitor all traffic on port 25:

tcpdump -vv -x -X -s 1500 -i eth1 port 25

  • -vv : More verbose output
  • -x : When parsing and printing, in addition to printing the headers of each packet, print the data of each packet.
  • -X : When parsing and printing, in addition to printing the headers of each packet, print the data of each packet (minus its link level header) in hex and ASCII. This is very handy for analysing new protocols.
  • -s 1500: Snarf snaplen bytes of data from each packet rather than the default of 68. This is useful to see lots of information.
  • -i eth1 : Monitor eth1 interface