jail.local 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [ssh-iptables]
  2. enabled = true
  3. filter = sshd
  4. action = hestia[name=SSH]
  5. logpath = /var/log/auth.log
  6. maxretry = 5
  7. [vsftpd-iptables]
  8. enabled = false
  9. filter = vsftpd
  10. action = hestia[name=FTP]
  11. logpath = /var/log/vsftpd.log
  12. maxretry = 5
  13. [exim-iptables]
  14. enabled = true
  15. filter = exim
  16. action = hestia[name=MAIL]
  17. logpath = /var/log/exim4/mainlog
  18. [dovecot-iptables]
  19. enabled = true
  20. filter = dovecot
  21. action = hestia[name=MAIL]
  22. logpath = /var/log/dovecot.log
  23. [mysqld-iptables]
  24. enabled = false
  25. filter = mysqld-auth
  26. action = hestia[name=DB]
  27. logpath = /var/log/mysql.log
  28. maxretry = 5
  29. [hestia-iptables]
  30. enabled = true
  31. filter = hestia
  32. action = hestia[name=HESTIA]
  33. logpath = /var/log/hestia/auth.log
  34. maxretry = 5
  35. [roundcube-auth]
  36. enabled = false
  37. filter = roundcube-auth
  38. action = hestia[name=WEB]
  39. logpath = /var/log/roundcube/errors
  40. maxretry = 5
  41. [recidive]
  42. enabled = true
  43. filter = recidive
  44. action = hestia[name=RECIDIVE]
  45. logpath = /var/log/fail2ban.log
  46. maxretry = 5
  47. findtime = 86400
  48. bantime = 864000