Page 1 of 1

Fail2ban not banning on SSH and VESTA

Posted: Wed Feb 07, 2018 4:59 pm
by ServerHost
I installed a VPS with Debian 8 + Vesta 0.9.8.19.

## VESTA

To test I got my password wrong 6x when trying to access https://ip_server:8083. Fail2Ban sends the email informing that the IP has been banned, but the IP is not blocked.

## SSH

IP is not blocked after attempts have been exceeded and also does not send the email. I changed the ssh port to 22220 but it also does not block.

Can someone help me?

Re: Fail2ban not banning on SSH and VESTA

Posted: Tue Feb 13, 2018 7:07 pm
by skamasle
Hi

Try

Code: Select all

cd /etc
wget http://c.vestacp.com/0.9.8/ubuntu/fail2ban.tar.gz -O fail2ban.tar.gz 

Re: Fail2ban not banning on SSH and VESTA

Posted: Wed Feb 14, 2018 1:19 pm
by ServerHost
skamasle wrote:
Tue Feb 13, 2018 7:07 pm
Hi

Try

Code: Select all

cd /etc
wget http://c.vestacp.com/0.9.8/ubuntu/fail2ban.tar.gz -O fail2ban.tar.gz 
Thanks for your attention, but this has already been installed by default on vesta.
At the moment SSH is still not being blocked.

Re: Fail2ban not banning on SSH and VESTA

Posted: Wed Feb 14, 2018 7:36 pm
by skamasle
Yes, in some cases you need download it, because vesta miss that files

Check if there are correct vesta.conf in your fail2ban/* dirs