mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 11:18:51 +00:00
clear logs
This commit is contained in:
parent
68379a1a25
commit
63ba812446
3 changed files with 14 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
# T-Pot #
|
||||
# Dionaea upstart script #
|
||||
# #
|
||||
# v16.03.3 by mo, DTAG, 2016-01-27 #
|
||||
# v16.03.4 by mo, DTAG, 2016-02-06 #
|
||||
########################################################
|
||||
|
||||
description "Dionaea"
|
||||
|
@ -18,6 +18,7 @@ pre-start script
|
|||
fi
|
||||
# Remove any data from previous container
|
||||
rm -rf /data/dionaea/*
|
||||
rm /data/ews/dionaea/ews.json
|
||||
mkdir -p /data/dionaea/log /data/dionaea/bistreams /data/dionaea/binaries /data/dionaea/rtp /data/dionaea/wwwroot
|
||||
chmod 760 /data/dionaea -R
|
||||
chown tpot:tpot /data/dionaea -R
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
# T-Pot #
|
||||
# Elasticpot upstart script #
|
||||
# #
|
||||
# v16.03.2 by ms, DTAG, 2016-01-02 #
|
||||
# v16.03.3 by ms/mo, DTAG, 2016-02-04 #
|
||||
########################################################
|
||||
|
||||
description "Elasticpot"
|
||||
description "ElasticPot"
|
||||
author "ms"
|
||||
start on started docker and filesystem
|
||||
stop on runlevel [!2345]
|
||||
|
@ -17,6 +17,10 @@ pre-start script
|
|||
then docker rm -v $myCID;
|
||||
fi
|
||||
# Remove any data from previous container
|
||||
rm -rf /data/elasticpot/*
|
||||
mkdir -p /data/elasticpot/log
|
||||
chmod 760 /data/elasticpot -R
|
||||
chown tpot:tpot /data/elasticpot -R
|
||||
end script
|
||||
script
|
||||
/usr/bin/docker run --name elasticpot --rm=true -v /data/elasticpot:/data/elasticpot -v /data/ews:/data/ews -p 9200:8080 dtagdevsec/elasticpot:latest1603
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue