Fail2ban default version

Discussions about the usage of KeyHelp.
Post Reply
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Fail2ban default version

Post by Tony20 »

Hello, before, I was having fail2ban problems. so I deleted it and did the install again, now Keyhelp have changed the way it work,
but my version does not get update with keyhelp. there a way to fix this so I can get the default version of Fail2ban that come with Keyhelp?

The fail2ban version was install from Ubuntu 20.04
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Fail2ban default version

Post by BasHeijermans »

Check the logs, it will tell you what went wrong.

In my opinion it doesn't start because of missing logs in jails that can't be read.

Run this, should show something simmular:

Code: Select all

service fail2ban status
● fail2ban.service - Fail2Ban Service
     Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-07-18 09:34:36 CEST; 6 days ago
       Docs: man:fail2ban(1)
   Main PID: 150161 (fail2ban-server)
      Tasks: 7 (limit: 38072)
     Memory: 14.8M
     CGroup: /system.slice/fail2ban.service
             └─150161 /usr/bin/python3 /usr/bin/fail2ban-server -xf start

jul 18 09:34:36 sprintweb.be systemd[1]: fail2ban.service: Succeeded.
jul 18 09:34:36 sprintweb.be systemd[1]: Stopped Fail2Ban Service.
jul 18 09:34:36 sprintweb.be systemd[1]: Starting Fail2Ban Service...
jul 18 09:34:37 sprintweb.be fail2ban-server[150161]: Server ready
jul 18 09:34:36 sprintweb.be systemd[1]: Started Fail2Ban Service.
If it fails it will also tell you why.

KeyHelp can't do anything if the deamon won't start.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Fail2ban default version

Post by Alexander »

And to answer your question: KeyHelp installs the Fail2Ban version, which is the default for the particular operating system version.

In the case of Ubuntu 20.04 - it is currently Fail2Ban 0.11.1.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: Fail2ban default version

Post by Tony20 »

Hello Alexander! is there a way for me to install it and make sure when the KeyHelp Panel get updated is also get update?
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Fail2ban default version

Post by Alexander »

This would be the installation commands:

Code: Select all

apt-get install -y fail2ban ;
cp /home/keyhelp/www/keyhelp/install/templates/fail2ban/jail.d/keyhelp.local /etc/fail2ban/jail.d/keyhelp.local ;
cp /home/keyhelp/www/keyhelp/install/templates/fail2ban/filter.d/keyhelp-phpmyadmin.conf /etc/fail2ban/filter.d/keyhelp-phpmyadmin.conf ;
chown keyhelp:keyhelp /etc/fail2ban/jail.d/keyhelp.local ;
service fail2ban restart ;
If it still won't work, we would need more input, error messages etc.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Fail2ban default version

Post by BasHeijermans »

You may want to send him the default configs that KeyHelp and Fail2ban use.
Then restart fail2ban and see if it works.

Delete entire /etc/fail2ban and replace it with yours.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Fail2ban default version

Post by Alexander »

I did, see the "cp" commands.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply