Sean-Der / fail2web

a fail2ban GUI powered by fail2rest
536 stars 48 forks source link

Beginner questions #15

Closed ItsAdventureTime closed 10 years ago

ItsAdventureTime commented 10 years ago

Hello,

First of all, I would like to commend you for creating an awesome tool with a stunning objective! I'm just a beginner, novice when it comes to Linux. Yet, it's a good thing that I have installed fail2ban manually. Now, how can I use this script?

By the way, I installed fail2ban 0.9.0.

Thanks.

Sean-Der commented 10 years ago

Hi @ItsAdventureTime! I am glad your excited to use fail2web, hopefully it meets your expectations :)

Do you feel comfortable using IRC? I just created the #fail2web channel on Freenode, it might be easier for me to help you there.

If you don't feel comfortable using IRC just tell me, and I can you setup through GitHub issues just fine!

ItsAdventureTime commented 10 years ago

Hi, thanks for replying. IRC is fine with me, yet I want to configure ZNC first on my server. I love to challenge myself, that's why LOL. For now, let's talk here, so that others can refer to this thread in case if they are having the same questions or issues. For the expectations, it's just simple. I just wanted a simple way to configure and to activate fail2ban without installing and using a complicated script, which is Webmin. It's also a waste of space, in my opinion.

Sean-Der commented 10 years ago

Hi @ItsAdventureTime

Sorry for the delay I wanted to get graphs into fail2web, but now that is done let us see if we can get you setup.

First thing you will want to do is locate the location of your fail2ban socket. You can find this information in your 'fail2ban.conf' a quick way to get this information would be 'grep socket fail2ban.conf'

Once you have that information you will be able to setup https://github.com/sean-der/fail2rest this is the service that fail2web communicates with. fail2rest is written in Go, so you will need to set that up http://golang.org/doc/install. Once you have Go install just run a 'go get github.com/Sean-Der/fail2rest' this will fetch everything needed, now you can just edit the 'config.json' in your fail2rest folder. Then to run fail2rest you can do a 'go run *.go' as a user that has permission to read your fail2ban socket.

Once you get this far confirm that you have a working fail2rest installation by visiting http://127.0.0.1:5000/global/status this should give you an array of all your currently enabled jails.

Sean-Der commented 10 years ago

Once you have a working fail2rest instance you can now setup fail2web, and configure it to contact fail2rest.

Follow the instructions here on how to configure nginx to proxy fail2rest and serve fail2web.

I should be able to answer any questions on here, IRC or email on setting things up if I missed steps

Sean-Der commented 10 years ago

Closing from inactivity, feel free to reopen @ItsAdventureTime if you are still having issues with fail2web

thanks!