hi i,m new to tcpdump, i run it from linux terminal with this script but it only listens, it doesn't capture anything although it should, is there command like -k in wireshark , that makes tcpdump start capturing immediately ??
asked 17 Jun '15, 02:59 yas1234 converted to question 17 Jun '15, 03:32 grahamb ♦ |
One Answer:
You don't send the tcpdump command to the background (no & at the end of the command), and thus the other commands will be executed only after tcpdump was stopped (I guess after you pressed CTRL-C)!
No, tcpdump starts to capture traffic, as soon as you start it. BTW: If you add the & to the tcpdump command, and you still don't see any traffic, you are either listening on the wrong interface (eth1) or the iperf command does not generate any traffic. Regards answered 17 Jun '15, 04:21 Kurt Knochner ♦ edited 17 Jun '15, 06:21 |
Please don't tack new questions as an "Answer" to an existing unrelated question. Please read the FAQ for more info on using this site.
@yas1234: BTW, if I look at your question history, it seems like you don't fully understand how this site is supposed to work.
It's pretty simple:
You have asked quite a few questions in the past, with good answers, but you never accepted one of those answers. Please read the FAQ of this site and make yourself familiar with the site rules.
Thanks!