tcpdump -n -v tcp or udp or icmp and not port 22

show all upd tcp an icmp traffic but ssh

By: opexxx
2009-09-04 09:23:52

These Might Interest You

  • This command is jsut for the main IP settings of ndd. if you need ip6 or icmp edit the text within the egrep inclusion area. Felix001 - Show Sample Output

    for i in `ndd /dev/ip \? | awk '{ print $1 }' | egrep -v "ip6|status|icmp|igmp|\?"` ; do echo $i `ndd -get /dev/ip $i` ; done | grep -v \?
    felix001 · 2010-02-15 12:32:33 0
  • you need to start a listening hping on the reciever: hping3 --listen -I eth0 --sign MSGID1 then you can send your file: hping3 --icmp --sign MSGID1 -d 50 -c 1 --file a_file Show Sample Output

    hping3 --icmp --sign MSGID1 -d 50 -c 1 --file a_file
    hadace · 2013-10-23 14:01:01 0
  • View all memcache traffic

    sudo tcpdump -i eth0 -s 65535 -A -ttt port 11211
    kineticrick · 2011-03-10 08:20:00 0
  • Run this on a windows machine then add your localhost as a socks server for port 8080 within your web browser. Your traffic will now be proxying and sent via your server over ssh.

    Putty -d 8080 [server]
    felix001 · 2009-10-15 06:54:58 2
  • Traffic details on the Ethernet interface. Show Sample Output

    ethtool -S eth0
    rockon · 2009-03-01 10:25:46 0
  • Trace and view network traffic. I made this far too complicated.. now fixed, thanks zolden.

    tcpdump -A -s 0 port 80
    rik · 2012-02-22 14:17:45 4

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: