このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
01_linux:01_net:01_tcpdump [2013/03/25 01:57] – matsui | 01_linux:01_net:01_tcpdump [2021/01/08 04:04] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 01 tcpdump ====== | ||
+ | ===== arpを省く ===== | ||
+ | |||
+ | <code console> | ||
+ | # tcpdump -nne -i eth0 -s 180 -X not arp | ||
+ | </ | ||
+ | |||
+ | ===== port 80と443だけ ===== | ||
+ | |||
+ | <code console> | ||
+ | # tcpdump -nne -i eth0 -s 180 -X port 80 or port 443 | ||
+ | </ | ||
+ | |||
+ | ===== port範囲 ===== | ||
+ | |||
+ | < | ||
+ | # tcpdump -nne -i eth0 tcp dst portrange 10000-10010 | ||
+ | </ | ||
+ | |||
+ | ===== 特定ホストだけ ===== | ||
+ | |||
+ | <code console> | ||
+ | # tcpdump -nne -i bond1.302 not arp and icmp and host 8.8.8.8 | ||
+ | </ | ||
+ | |||
+ | ===== 特定ネットワークだけ ===== | ||
+ | |||
+ | <code console> | ||
+ | # tcpdump -nne -i eth0 net 192.168.10.0/ | ||
+ | </ | ||
+ | |||
+ | ===== Macアドレス ===== | ||
+ | |||
+ | < | ||
+ | # tcpdump -nne -i eth0 ether dst ff: | ||
+ | </ | ||
+ | |||
+ | ===== 特定ネットワークが、ソース or デスティネーションだけ ===== | ||
+ | |||
+ | <code console> | ||
+ | # tcpdump -nne -i eth0 src net 192.168.10.0/ | ||
+ | # tcpdump -nne -i eth0 dst net 192.168.10.0/ | ||
+ | </ | ||
+ | |||
+ | [[http:// | ||
+ | [[https:// | ||
+ | |||
+ | |||
+ | {{tag> |