2010年6月8日 星期二

tcpdump example

[root@host dump]# less capture.sh


#!/bin/sh


MIP=172.17.100.41
MPORT=30002

FILE=/tmp/`date +'ap-%Y%m%d%H%M%S'`.pcap

tcpdump -i eth0 -s 0 -w $FILE tcp and port $MPORT

2010年6月7日 星期一