Centos 7 + Fail2ban problem
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Centos 7 + Fail2ban problem
Doing that worked with Centos7. Thanks.lordcris wrote:On Centos 7 I had to install the package fail2ban-systemd
then I followed these steps:
https://vestacp.com/docs/#how-to-instal ... hel-centos
and everything worked fine after that.
2015-12-14 08:55:21,666 fail2ban.filter [17235]: INFO [ssh-iptables] Found 213.152.28.13
2015-12-14 08:55:21,681 fail2ban.filter [17235]: INFO [ssh-iptables] Found 213.152.28.13
2015-12-14 08:55:21,891 fail2ban.actions [17235]: NOTICE [ssh-iptables] Ban 213.152.28.13
2015-12-14 08:55:23,150 fail2ban.filter [17235]: INFO [ssh-iptables] Found 213.152.28.13
2015-12-14 09:05:22,361 fail2ban.actions [17235]: NOTICE [ssh-iptables] Unban 213.152.28.13
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Centos 7 + Fail2ban problem
I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
Re: Centos 7 + Fail2ban problem
I tested like you and its work.Server banned me.But today when i login ssh i see 68 failed login attemps.I dont understand.RevengeFNF wrote:I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Centos 7 + Fail2ban problem
fail2ban only ban them after they tried to login. And only for 15 minutes. You can change that value.taliptako wrote:I tested like you and its work.Server banned me.But today when i login ssh i see 68 failed login attemps.I dont understand.RevengeFNF wrote:I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
Re: Centos 7 + Fail2ban problem
I'm using Centos 7.1 and Mariadb and sometimes in same time im getting ssh login attempt and mariadb request.RevengeFNF wrote:fail2ban only ban them after they tried to login. And only for 15 minutes. You can change that value.taliptako wrote:I tested like you and its work.Server banned me.But today when i login ssh i see 68 failed login attemps.I dont understand.RevengeFNF wrote:I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.

So if it happens my Mariadb downing.I was have 512mb ram now i update 1 gb is still continues and i have 1 gb swap.
I need to fix it fastly or i need to do makeshift like script if my service down i want restart it automatically.
Re: Centos 7 + Fail2ban problem
This work around didn't work for me, anyway we have a bug open for this case.lordcris wrote:On Centos 7 I had to install the package fail2ban-systemd
then I followed these steps:
https://vestacp.com/docs/#how-to-instal ... hel-centos
and everything worked fine after that.