I know there's a native command on linux that will output (to stdout) every "event" related to a certain network interface (be it eth0 etc').
Like there's tail -f <file>
to listen on file changes..
I just can't find it.
I want to see all events, incoming packets, even dropped ones. At lowest level possible. In every protocol (TCP, UDP etc').
I think WireShark is a bit too big for this as I need something very simple just to see the events, it's for testing.
What's the command?
You're talking about tcpdump, as other people have mentioned.
There's also ngrep:
which is sort of like grep on a network stream. It's not a standard package, but it can help you find the network traffic you're looking for.
TCPDUMP?
I think you might be looking for
tcpdump
.