diff --git a/tcpdump-schedule/tcpdump_getdata.sh b/tcpdump-schedule/tcpdump_getdata.sh index 1ba2473..aa6bdeb 100644 --- a/tcpdump-schedule/tcpdump_getdata.sh +++ b/tcpdump-schedule/tcpdump_getdata.sh @@ -3,5 +3,7 @@ INTERFACE=eth0 PATH=/var/tmp/ FILENAME=tcpdump_$DATE.pcap -#Execute tcpdump command -/usr/sbin/tcpdump -i $INTERFACE -s0 -w "$PATH/$FILENAME" \ No newline at end of file +# Execute tcpdump command +# -W 5 = Limit 5 files +# -G 60 = Rotate every 60 seconds +/usr/sbin/tcpdump -i $INTERFACE -s0 -w "$PATH/$FILENAME" -W 5 -G 60 \ No newline at end of file