From bfe3e817686b1817f89b6be6b7c5e927ca3b85ff Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 1 May 2022 17:33:53 +0000 Subject: [PATCH] Update 'MagicBox : Magicbane in a Box' --- MagicBox-%3A-Magicbane-in-a-Box.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/MagicBox-%3A-Magicbane-in-a-Box.md b/MagicBox-%3A-Magicbane-in-a-Box.md index d959e1c..9b70937 100644 --- a/MagicBox-%3A-Magicbane-in-a-Box.md +++ b/MagicBox-%3A-Magicbane-in-a-Box.md @@ -36,5 +36,22 @@ Start your MagicBox `docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/mbbox/magicbane/mb.conf magicbane/magicbox:latest &` ->It is recommended that you change the external port via the docker run command not within the magicbane.conf configuration file. Docker will automatically route ip traffic through the bridge to the corect interal port. +>It is recommended that you change the external port via the docker run command not within the magicbane.conf configuration file. Docker will automatically route ip traffic through the bridge to the corect interal port. MagicBox uses three ports. 5000 is used for a debugger or profiler. 6000 is used for the login server. 8000 is used for the world server. If behind a NAT/router the user must open these ports on his router or configure a DMZ. +Below is the script the MagicBane team uses to cycle MagicBox in testing. + +```console #!/bin/bash + +# MagicBox : © 2022 Magicbane Project (www.magicbane.com) +# File: magicbox.sh +# Purpose: Startup magicbox docker image + +# kill running container and prune if exists + +echo "Killing running MagicBox images..." +docker rm -f magicbox > /dev/null 2>&1 + +# start container + +echo "Starting MagicBox" +docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/mbbox/magicbane/mb.conf magicbane/magicbox:latest & ```