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 Web Server
  • Search

firewall and fail2ban

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
morcom
Posts: 14
Joined: Thu May 15, 2014 6:21 pm

firewall and fail2ban
  • Quote

Post by morcom » Sun Nov 02, 2014 2:56 pm

The new VESTA firewall is working great but I was wondering if I can now install (Centos 6) fail2ban?
Will one rule out the other?
My logs show loads of ssh attacks by specific IPs which are stopped after 5 attempts but then continue again

Thanks

Fred
Top

melkerman
Posts: 8
Joined: Wed Apr 02, 2014 10:52 am

Re: firewall and fail2ban
  • Quote

Post by melkerman » Sun Nov 02, 2014 4:56 pm

sudo nano /etc/fail2ban/jail.local

add this (3600 sec or if you want 31536000 seconds=1 year):
[DEFAULT]
bantime = 3600

sudo service fail2ban stop

sudo service fail2ban start
Top

morcom
Posts: 14
Joined: Thu May 15, 2014 6:21 pm

Re: firewall and fail2ban
  • Quote

Post by morcom » Sun Nov 02, 2014 5:11 pm

Thanks melkerman
Sound exactly what I will do when I install fail2ban.
My main question was if it is ok to install fail2ban in the first place but after reading further into loads of other forums about fail2ban it seems that all firewall apps feed into the IPtables separately (chains) so should be ok. I'll use your settings.

Regards

Fred
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • 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