-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MHN Docker Container #169
Comments
Thats awesome. Thanks for Sharing! |
Thank you @Epicism! I have added this to the wiki here: https://github.com/threatstream/mhn/wiki/Running-MHN-in-Docker |
My pleasure :) On Fri, Jan 15, 2016 at 1:24 PM, Ryan Clough [email protected]
|
Hello all, I had to rebuild my MHN server and I thought that I would complete the instructions towards how to install the remaining containers. The container setup is based on my environment configuration so please feel free to modify it to your requirements. #Create the Kippo container: #In the docker container, run the following commands:
Then create a Supervisord script to manage MHN:
#Create the Wordpot container: #In the docker container, run the following commands:
#Create the cowrie container: #In the docker container, run the following commands:
#Create the Dionaea container: #In the docker container, run the following commands:
#Create the Shockpot container: #In the docker container, run the following commands:
#Create the conpot container: #In the docker container, run the following commands:
#Create the elastichoney container:
Step 4. ??? Step 5. Profit! |
Hello all,
This isn't an issue as much as sharing post. I have hacked my way into configuring MHN on a docker container for simplicity. Because docker doesn't use standard services, I had to hack supervisord to start services at appropriate times.
To start a docker container, use the command
*Note: 8089 is if you are using the Splunk forwarder, and you can chose between 80 and 443. You can also make the host OS' port separate from the docker container's port by using [hostport]:[dockerport], which is convenient for honeypots.
Next, create and run the following script:
I haven't started deploying honeypots yet, which is my next task. Unfortunately, due to the interactive nature of MHN's installation, supervisord is manually running in the background instead of as a started service. To restart the container later use
Don't forget to reference the host's IP address or Hostname as the MHN server's IP unless you are using Docker's internal networking. You could also pass the script during the docker container creation, but since you have to execute it inside of the container it doesn't really matter.
If there is enough interest in this my hope is that we can create a process to generate a docker image/honeypot images on the fly, perhaps by passing a simple config file to the image on run which configures the server as required.
Cheers.
Epic
The text was updated successfully, but these errors were encountered: