We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
fail2ban like stoped but running after yum update
fail2ban like stoped but running after yum update
After yum update, the fail2ban was updated and it appears like stoped in the web admin (server section).
The probem is that /usr/local/vesta/bin/v-list-sys-services can't detect fail2ban procces fine, because the old proccess was named "fail2ban-service", and after the update the new name of procces is "f2b/server".
Is it possible to patch the /usr/local/vesta/bin/v-list-sys-services to detect the new name?.
This is the output in the updated server (not working):
And this before update (working):
Thank you
****
Updated;
It works fine if I change in line 273 in the /usr/local/vesta/bin/v-list-sys-services
from:
to:
But ... It is correct?
The probem is that /usr/local/vesta/bin/v-list-sys-services can't detect fail2ban procces fine, because the old proccess was named "fail2ban-service", and after the update the new name of procces is "f2b/server".
Is it possible to patch the /usr/local/vesta/bin/v-list-sys-services to detect the new name?.
This is the output in the updated server (not working):
And this before update (working):
Thank you
****
Updated;
It works fine if I change in line 273 in the /usr/local/vesta/bin/v-list-sys-services
from:
Code: Select all
# Checking FIREWALL Fail2ban extention
if [ ! -z "$FIREWALL_EXTENSION" ]; then
get_srv_state $FIREWALL_EXTENSION fail2ban-server script
data="$data\nNAME='$FIREWALL_EXTENSION' SYSTEM='brute-force monitor'"
data="$data STATE='$state' CPU='$cpu' MEM='$mem' RTIME='$rtime'"
fi
Code: Select all
# Checking FIREWALL Fail2ban extention
if [ ! -z "$FIREWALL_EXTENSION" ]; then
get_srv_state $FIREWALL_EXTENSION f2b/server script
data="$data\nNAME='$FIREWALL_EXTENSION' SYSTEM='brute-force monitor'"
data="$data STATE='$state' CPU='$cpu' MEM='$mem' RTIME='$rtime'"
fi
Re: fail2ban like stoped but running after yum update
After this fix the service is shown as active, but you can't restart it anyway.
Re: fail2ban like stoped but running after yum update
Re: fail2ban like stoped but running after yum update
what is the output of /usr/local/vesta/bin/v-list-sys-services command?
This is the command that must work.
This is the command that must work.
Re: fail2ban like stoped but running after yum update
It is posible that any of the "jails" has some problem... You can disable all the "jails" and re-enable one to one to see the origin of problem.
I'm sorry, I don't known more ideas.
I'm sorry, I don't known more ideas.
Re: fail2ban like stoped but running after yum update
In my case after changing "fail2ban-server" for "f2b/server" it works for me, but my fail2ban also consumes a lot of RAM in centOS 7, is this normal? Can it be reduced?
If I disable all the "jails" fail2ban it consumes about 3735 mb
If I disable all the "jails" fail2ban it consumes about 3735 mb
Re: fail2ban like stoped but running after yum update
Hey I know its been a while since you posted this but this solved my problem today and seems to be a very clean fix for anyone having issues with fail2ban not showing up as running on the admin panel. Thanks.