Page 1 of 1

fail2ban configuration file

Posted: Thu Feb 11, 2016 2:02 am
by jtwhite93
Hello all,

I am completely new to VestaCP.

I just need to confirm that the correct configuration file for the fail2ban jails is:

Code: Select all

/etc/fail2ban/fail2ban.jail.conf
When you setup fail2ban manually you have to create a jail.local file and I do not see one of those, however, I see settings in the /etc/fail2ban/fail2ban.jail.conf file. I just want to make sure I'm looking at the right one.

Thank you much for your help.

Maybe if someone has the time they could update https://vestacp.com/docs/#config-log-lo ... hel-centos with the config location for fail2ban?

Re: fail2ban configuration file

Posted: Thu Feb 11, 2016 9:36 am
by tjebbeke
I think that you need to create the files by yourself.

Code: Select all

cd /etc/fail2ban/
ls -la
total 72
drwxr-xr-x  6 root root  4096 Nov  7 08:21 .
drwxr-xr-x 94 root root  4096 Jan 17 13:56 ..
drwxr-xr-x  2 root root  4096 Nov  7 08:21 action.d
-rw-r--r--  1 root root  2313 Oct 17 11:29 fail2ban.conf
drwxr-xr-x  2 root root  4096 Oct 17 11:29 fail2ban.d
drwxr-xr-x  3 root root  4096 Nov  7 08:21 filter.d
-rw-r--r--  1 root root 18558 Oct 17 11:29 jail.conf
drwxr-xr-x  2 root root  4096 Oct 17 11:29 jail.d
-rw-r--r--  1 root root   710 Oct 21  2014 jail.local
-rw-r--r--  1 root root  1939 Jul 31  2015 paths-common.conf
-rw-r--r--  1 root root   642 Jul 31  2015 paths-debian.conf
-rw-r--r--  1 root root   743 Jul 31  2015 paths-fedora.conf
-rw-r--r--  1 root root  1174 Jul 31  2015 paths-freebsd.conf
-rw-r--r--  1 root root   290 Jul 31  2015 paths-osx.conf