mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
clear logs
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
# T-Pot #
|
||||
# Suricata upstart script #
|
||||
# #
|
||||
# v16.03.1 by mo, DTAG, 2015-12-11 #
|
||||
# v16.03.2 by mo, DTAG, 2016-02-06 #
|
||||
########################################################
|
||||
|
||||
description "Suricata"
|
||||
@ -16,6 +16,11 @@ pre-start script
|
||||
if [ "$myCID" != "" ];
|
||||
then docker rm -v $myCID;
|
||||
fi
|
||||
# Remove any data from previous container
|
||||
rm -rf /data/suricata/*
|
||||
mkdir -p /data/suricata/log
|
||||
chmod 760 -R /data/suricata
|
||||
chown tpot:tpot -R /data/suricata
|
||||
myIF=$(route | grep default | awk '{ print $8 }')
|
||||
/sbin/ethtool --offload $myIF rx off tx off
|
||||
/sbin/ethtool -K $myIF gso off gro off
|
||||
|
||||
Reference in New Issue
Block a user