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