From e487d561472f02eed389a17da98a21c75a32b0f6 Mon Sep 17 00:00:00 2001 From: petbau Date: Tue, 25 Feb 2025 11:50:09 +0100 Subject: [PATCH] Edit tcpdump_getdata.sh --- tcpdump-schedule/tcpdump_getdata.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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