ddos-deflate icon indicating copy to clipboard operation
ddos-deflate copied to clipboard

Add Cronjob or something to remove tcpdump file

Open ad1tya2 opened this issue 4 years ago • 1 comments

I ended up getting a 2tb pcap file and crashing my server due to this....

ad1tya2 avatar Feb 01 '21 14:02 ad1tya2

Since I don't use that feature never noticed this huge issue. After reading tcpdump manual it seems we can use the -C flag which says:

-C file_size
              Before writing a raw packet to a savefile, check whether the file is currently larger than file_size and, if so,
              close the current savefile and open a new one.  Savefiles after the first savefile will have the name  specified
              with  the -w flag, with a number after it, starting at 1 and continuing upward.  The units of file_size are mil‐
              lions of bytes (1,000,000 bytes, not 1,048,576 bytes).

Then, check for old pcap files each time the cloud flare ip scanner runs and delete them.

jgmdev avatar Feb 02 '21 08:02 jgmdev