Fail2ban ban forever?

Hi
I have notice sometime now that my mailserver have to work hard to ban IP addresses.
I have now change so it ban 2 weeks but is it possible to put them in a list that ban them forever or at least a 6 month or a year?

Hi cazz

On Security > Fail2ban, you have to check the Recidive jail is perpetual in Web interface then,

 fail2ban-client set recidive banip xxx.xxx.xxx.xxx

or for a range of IP addresses

 fail2ban-client set recidive banip xxx.xxx.xxx.xxx/24

Michel-André

1 Like

fail2ban

Well it is check but I dot not understand where I write

fail2ban-client set recidive banip xxx.xxx.xxx.xxx

Do I have to do that from SSH?

1 Like

Hi cazz,

At the server console or at the ssh connection.

Michel-André