-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
client working fine, but server won't start #6
Comments
Please do this for me, in order sudo service fail2ban stop this will indicate to you exactly where the startup is failing This is referenced from my article at https://ubuntu101.co.za/security/fail2ban/fail2ban-persistent-bans-ubuntu/ |
I get no errors displayed when starting the client, only when doing If I do
|
Can you post your jail.local file, it's possible a simple typo somewhere which does not reflect in the client startup |
It's late here and dinner time now can I test this for you in the morning |
Ok, thanks! |
@fstltna will test it now and get back to you |
@fstltna your problem is with this jail you have (below). There is no such jail that comes with Fail2ban by default, if you installed this new jail/filter yourself it's broken. Take this out of your jail.local and Fail2ban will start. To troubleshoot in future with fail2ban set ALL jails to Take this out (or set enabled = false) and your Fail2Ban service will start
You also have some bad formatting in your jail.local, also spaces at the ends of many lines. I've cleaned it up for you. Use this jail.local attached and you should be up and running. Be very careful when copying and pasting from web pages or tutorials as often formatting can be messed up. |
@fstltna also you don't need to put the ignore IP line in all the jails, only once at the top of your jail.local |
Tried that and still have the issue - i even tried it without the jail.local at all and still get it... |
Zip your entire fail2ban folder for me and email it to me so I can test it in a VM for you [email protected] |
Hi @mitchellkrogza I got the same issue.
$ cat jail.local (I just run sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local like on the post on your blog) Thank you.
|
It's late here in South Africa I'll have to look at this in the morning but here's an article of mine worth reading https://ubuntu101.co.za/security/fail2ban/fail2ban-persistent-bans-ubuntu/ |
Make sure you use a jail.local file and not the main jail.conf for your own configurations my article has lots of info in it read carefully and slowly |
It is 1 am here too. Sleep tight. Thank you so much. |
Another tip... disable ALL jails and enable them one by one, EACH time starting and stopping the Fail2Ban service... that way you quickly find a jail with a messy configuration. |
so for now, I should only look at jail.local file ? Can I have empty one? |
I follow your previous suggestions. Here is the output. Thank you so much. I need to head to bed too.
$ sudo cat jail.local
|
Problem seems to be solved after follow your post and create those conf files. I got no error now after running |
Awesome well done you are learning fast. Seems I will have some competition from you one day. |
ha I am the master of "copy and paste". Thank you so much for your patience and support. |
I have tried it without the code but still see it failing. I am running this:
service fail2ban start
and I get:
Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.
running:
systemctl status fail2ban.service
gives me:
The text was updated successfully, but these errors were encountered: