mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
tweaking updater, installer
updater: add conntrack, tpot.service installer: no ipv4 pinning
This commit is contained in:
parent
dd5f2c2a8d
commit
1f12cb24c2
2 changed files with 8 additions and 7 deletions
|
@ -122,9 +122,6 @@ mySYSCTLCONF="
|
||||||
kernel.panic = 1
|
kernel.panic = 1
|
||||||
kernel.panic_on_oops = 1
|
kernel.panic_on_oops = 1
|
||||||
vm.max_map_count = 262144
|
vm.max_map_count = 262144
|
||||||
net.ipv6.conf.all.disable_ipv6 = 1
|
|
||||||
net.ipv6.conf.default.disable_ipv6 = 1
|
|
||||||
net.ipv6.conf.lo.disable_ipv6 = 1
|
|
||||||
"
|
"
|
||||||
myFAIL2BANCONF="[DEFAULT]
|
myFAIL2BANCONF="[DEFAULT]
|
||||||
ignore-ip = 127.0.0.1/8
|
ignore-ip = 127.0.0.1/8
|
||||||
|
|
12
update.sh
12
update.sh
|
@ -125,6 +125,8 @@ if [ $? -ne 0 ];
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "[ $myGREEN"OK"$myWHITE ]"
|
echo "[ $myGREEN"OK"$myWHITE ]"
|
||||||
|
echo "###### $myBLUE Now disabling T-Pot service.$myWHITE "
|
||||||
|
systemctl disable tpot
|
||||||
echo "###### $myBLUE Now cleaning up containers.$myWHITE "
|
echo "###### $myBLUE Now cleaning up containers.$myWHITE "
|
||||||
if [ "$(docker ps -aq)" != "" ];
|
if [ "$(docker ps -aq)" != "" ];
|
||||||
then
|
then
|
||||||
|
@ -286,11 +288,16 @@ chown tpot:tpot -R /data
|
||||||
chmod 644 -R /data/nginx/conf
|
chmod 644 -R /data/nginx/conf
|
||||||
chmod 644 -R /data/nginx/cert
|
chmod 644 -R /data/nginx/cert
|
||||||
|
|
||||||
echo "### Now pulling latest docker images"
|
echo "### Now pulling latest docker images ..."
|
||||||
echo "######$myBLUE This might take a while, please be patient!$myWHITE"
|
echo "######$myBLUE This might take a while, please be patient!$myWHITE"
|
||||||
fuPULLIMAGES 2>&1>/dev/null
|
fuPULLIMAGES 2>&1>/dev/null
|
||||||
|
|
||||||
fuREMOVEOLDIMAGES "2006"
|
fuREMOVEOLDIMAGES "2006"
|
||||||
|
|
||||||
|
echo "### Copying T-Pot service to systemd."
|
||||||
|
cp /opt/tpot/host/etc/systemd/tpot.service /etc/systemd/system/
|
||||||
|
systemctl enable tpot
|
||||||
|
|
||||||
echo "### If you made changes to tpot.yml please ensure to add them again."
|
echo "### If you made changes to tpot.yml please ensure to add them again."
|
||||||
echo "### We stored the previous version as backup in /root/."
|
echo "### We stored the previous version as backup in /root/."
|
||||||
echo "### Some updates may need an import of the latest Kibana objects as well."
|
echo "### Some updates may need an import of the latest Kibana objects as well."
|
||||||
|
@ -298,9 +305,6 @@ echo "### Download the latest objects here if they recently changed:"
|
||||||
echo "### https://raw.githubusercontent.com/telekom-security/tpotce/master/etc/objects/kibana_export.ndjson.zip"
|
echo "### https://raw.githubusercontent.com/telekom-security/tpotce/master/etc/objects/kibana_export.ndjson.zip"
|
||||||
echo "### Export and import the objects easily through the Kibana WebUI:"
|
echo "### Export and import the objects easily through the Kibana WebUI:"
|
||||||
echo "### Go to Kibana > Management > Saved Objects > Export / Import"
|
echo "### Go to Kibana > Management > Saved Objects > Export / Import"
|
||||||
echo "### Or use the command:"
|
|
||||||
echo "### import_kibana-objects.sh /opt/tpot/etc/objects/kibana-objects.tgz"
|
|
||||||
echo "### All objects will be overwritten upon import, make sure to run an export first if you made changes."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fuRESTORE_EWSCFG () {
|
function fuRESTORE_EWSCFG () {
|
||||||
|
|
Loading…
Reference in a new issue