tcpdumpの基本的な使用方法はこちら ## 名前解決をしない tcpdump -n src 192.168.100.1 and dst 192.168.100.2 ## インターフェイスを指定する tcpdump -i eth1 ## 特定のホストを除外する tcpdump -i eth0 not host 192.168.100.5 ## 複数ホストを除外する tcpdump -i eth0 not host 192.168.100.5 and not host 192.168.100.6 ## ネットワークを指定する tcpdump net 192.168.100.0/24 ## ネットワークを除外する tcpdump not net 192.168.100.0/24 ## 特定ポートを指定する tcpdump -i eth0 not host 192.168.100.5 and
![tcpdumpのフィルターのまとめ](https://cdn-ak-scissors.b.st-hatena.com/image/square/70ddf7d7ddd2825dfc14c14b24c93752c2e78abe/height=288;version=1;width=512/http%3A%2F%2Fips.nekotype.com%2Fwp-content%2Fuploads%2F2012%2F12%2Flinux.png)