Edit tcpdump_getdata.sh
This commit is contained in:
parent
9dac42b3b4
commit
e487d56147
1 changed files with 4 additions and 2 deletions
|
@ -3,5 +3,7 @@ INTERFACE=eth0
|
||||||
PATH=/var/tmp/
|
PATH=/var/tmp/
|
||||||
FILENAME=tcpdump_$DATE.pcap
|
FILENAME=tcpdump_$DATE.pcap
|
||||||
|
|
||||||
#Execute tcpdump command
|
# Execute tcpdump command
|
||||||
/usr/sbin/tcpdump -i $INTERFACE -s0 -w "$PATH/$FILENAME"
|
# -W 5 = Limit 5 files
|
||||||
|
# -G 60 = Rotate every 60 seconds
|
||||||
|
/usr/sbin/tcpdump -i $INTERFACE -s0 -w "$PATH/$FILENAME" -W 5 -G 60
|
Loading…
Add table
Add a link
Reference in a new issue