Sniff packets using tcpdump

Posted by denisk on Server Fault See other posts from Server Fault or by denisk
Published on 2011-01-02T17:03:17Z Indexed on 2011/01/02 17:55 UTC
Read the original article Hit count: 241

Filed under:
|

I have a completely noob question. I want to see all packets that come to my computer from particular site (google.com). So I start tcpdump

sudo tcpdump -i eth0 host google.com

and enter google.com in a browser and hit enter - nothing gets captured. I can't figure out why it happen. What do I do wrong?


Edit

It appeared that I was listening to the wrong interface. I had changed eth0 to any and it worked. It was ppp1 that needed listening. Thanks for your answers!

© Server Fault or respective owner

Related posts about linux

Related posts about tcpdump