tcpdump -i eth1 -U -w - | tee dump.pcap | tcpdump -n -r -
This will listen:
- listen on eth1 (-i eth1)
- Don't wait until the output buffer fills before writing packets (-U)
- Write packets to STDOUT (-w -)
- Read from STDIN write to file and write to STDOUT (
tee dump.pcap) - Read packets from STDIN (and don't resolve names) (tcpdump -n -r -)
No comments:
Post a Comment