Skip to content
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

CentOS 7 Support #748

Open
neil-fox opened this issue Jan 15, 2020 · 7 comments
Open

CentOS 7 Support #748

neil-fox opened this issue Jan 15, 2020 · 7 comments

Comments

@neil-fox
Copy link

Hi,

Is their any update on whether MHN will be be supported on CentOS 7?

Cheers

@d1str0
Copy link
Collaborator

d1str0 commented Jan 15, 2020

This is being worked on in PR #724

It might work, it might not. I have not tested it yet.

@neil-fox
Copy link
Author

Yeah i tried it using a CentOS 7 iso a couple of days ago and the script fails when it comes to installing mongodb. I installed mongodb manually and it still failed.

@d1str0
Copy link
Collaborator

d1str0 commented Jan 16, 2020

The PR worked for me up until setting firewall rules.

@neil-fox
Copy link
Author

@d1str0 I have been attempting to install this on CentOS7 using the standard install instructions. Should i be doing something different? Thanks.

@d1str0
Copy link
Collaborator

d1str0 commented Jan 20, 2020

You can try this branch and see if it works for you.

@neil-fox
Copy link
Author

@d1str0 Thanks for your help.

Can confirm that MHN does work on CentOS 7.

For anybody else looking to install on CentOS 7 you will need to download MHN as normal but replace some scripts with the following updated versions:

https://github.com/pwnlandia/mhn/pull/724/files

Some awareness points for anybody else who comes across this issue:

Supervisor will need installing on CentOS 7:

  • yum -y install epel-release
  • yum install supervisor
  • export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

Make sure firewalld is installed or installation of nginx web UI will fail.

mhn-celery-worker failed for me after install, this can be sorted with the following commands:

  • cd /var/log/mhn/
  • chown nginx /var/log/mhn/mhn.log
  • supervisorctl start mhn-celery-worker

Also be aware that once installed the deploy scripts are for Ubuntu boxes. So if your honeypots are going to be built on CentOS 7 then my understanding is that you will have to deploy the honeypots separately then add the sensors manually using the following guide:

https://github.com/pwnlandia/mhn/wiki/Incorporate-an-already-deployed-Honeypot-into-MHN

This is something I am currently having some issues with and may raise a separate case for.

@d1str0
Copy link
Collaborator

d1str0 commented Jan 24, 2020

This has not been merged to master yet. Reopening until it is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants