Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

Centos 7 + Fail2ban problem

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
16 posts
  • Previous
  • 1
  • 2
RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Centos 7 + Fail2ban problem
  • Quote

Post by RevengeFNF » Mon Dec 14, 2015 9:50 am

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.
Doing that worked with Centos7. Thanks.
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
Top

RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Centos 7 + Fail2ban problem
  • Quote

Post by RevengeFNF » Mon Dec 14, 2015 9:10 pm

I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
Top

taliptako
Posts: 13
Joined: Sun Dec 13, 2015 10:32 am

Re: Centos 7 + Fail2ban problem
  • Quote

Post by taliptako » Tue Dec 15, 2015 9:16 am

RevengeFNF wrote:I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
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.
Top

RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Centos 7 + Fail2ban problem
  • Quote

Post by RevengeFNF » Tue Dec 15, 2015 9:55 am

taliptako wrote:
RevengeFNF wrote:I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
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.
fail2ban only ban them after they tried to login. And only for 15 minutes. You can change that value.
Top

taliptako
Posts: 13
Joined: Sun Dec 13, 2015 10:32 am

Re: Centos 7 + Fail2ban problem
  • Quote

Post by taliptako » Tue Dec 15, 2015 11:05 am

RevengeFNF wrote:
taliptako wrote:
RevengeFNF wrote:I just tested entering ssh with a wrong password, and fail2ban banned me. So its working with that solution. Many thanks again.
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.
fail2ban only ban them after they tried to login. And only for 15 minutes. You can change that value.
I'm using Centos 7.1 and Mariadb and sometimes in same time im getting ssh login attempt and mariadb request.
Image
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.
Top

Rodrigo
Posts: 11
Joined: Sat Sep 20, 2014 12:30 pm

Re: Centos 7 + Fail2ban problem
  • Quote

Post by Rodrigo » Wed Dec 16, 2015 4:40 pm

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.
This work around didn't work for me, anyway we have a bug open for this case.
Top


Post Reply
  • Print view

16 posts
  • Previous
  • 1
  • 2

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password