OpenWrt安装
$ opkg update && opkg install tcpdump
Usage
默认启动
$ tcpdump
普通情况下,直接启动tcpdump将监视第一个网络接口上所有流过的数据包。
# get list of interfaces
$ ifconfig
# do tcpdump on lan interface 'br-lan'
$ tcpdump -i br-lan -n
# dump for http traffic
$ tcpdump -i br-lan port 80
# dump for ssh traffic on wan, but do not show self
$ tcpdump -i eth0 port 22 and not host 192.168.1.7