Page 1 of 1
Fail2ban default version
Posted: Sat 23. Jul 2022, 06:10
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
Re: Fail2ban default version
Posted: Sun 24. Jul 2022, 16:54
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.
Re: Fail2ban default version
Posted: Mon 25. Jul 2022, 10:27
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.
Re: Fail2ban default version
Posted: Mon 25. Jul 2022, 15:33
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?
Re: Fail2ban default version
Posted: Mon 25. Jul 2022, 16:08
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.
Re: Fail2ban default version
Posted: Mon 25. Jul 2022, 17:21
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.
Re: Fail2ban default version
Posted: Tue 26. Jul 2022, 08:41
by Alexander
I did, see the "cp" commands.