starttcpdump.sh 122 Bytes
Newer Older
1
2
3
4
5
#!/bin/bash

if="eth2"

/usr/sbin/tcpdump -i $if 'udp and (port 10001 or port 10002)' -w - 2> /dev/null | gzip -c > $1.gz