Tcpdump with multiple dst IPs?

Can I specify more than 1 dstIP address for tcpdump? If not, how should I filter the information if I want only traffic for two specific destinations? Thank you very much!

+4
source share
2 answers

Yes, you can have a filter with several "dst host XXX.XXX.XXX.XXX" that are connected "or", for example, "dst host 192.9.200.1 or dst host 192.9.200.2".

+6
source

, IP- tcpdump . "dst host XXXXXX dst host XXXXX dst host XXXX" tcpdump.

: http://rationallyparanoid.com/articles/tcpdump.html

0

All Articles