mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
include conpot
This commit is contained in:
31
installer/data/upstart/conpot.conf
Normal file
31
installer/data/upstart/conpot.conf
Normal file
@ -0,0 +1,31 @@
|
||||
########################################################
|
||||
# T-Pot #
|
||||
# ConPot upstart script #
|
||||
# #
|
||||
# v16.03.1 by mo, DTAG, 2016-02-19 #
|
||||
########################################################
|
||||
|
||||
description "ConPot"
|
||||
author "mo"
|
||||
start on started docker and filesystem
|
||||
stop on runlevel [!2345]
|
||||
respawn
|
||||
pre-start script
|
||||
# Remove any existing conpot containers
|
||||
myCID=$(docker ps -a | grep conpot | awk '{ print $1 }')
|
||||
if [ "$myCID" != "" ];
|
||||
then docker rm -v $myCID;
|
||||
fi
|
||||
# Remove any data from previous container
|
||||
rm -rf /data/conpot/* || true
|
||||
mkdir -p /data/conpot/log
|
||||
chmod 760 /data/conpot -R
|
||||
chown tpot:tpot /data/conpot -R
|
||||
end script
|
||||
script
|
||||
/usr/bin/docker run --name conpot --rm=true -v /data/conpot:/data/conpot -v /data/ews:/data/ews -p 81:80 -p 102:102 -p 161:161/udp -p 502:502 dtagdevsec/conpot:latest1603
|
||||
end script
|
||||
post-start script
|
||||
# Delay next start to avoid rapid respawning
|
||||
sleep 2
|
||||
end script
|
Reference in New Issue
Block a user