jail.local 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/error.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.log
  40. maxretry = 5
  41. [phpmyadmin-auth]
  42. enabled = true
  43. filter = phpmyadmin-syslog
  44. action = hestia[name=WEB]
  45. logpath = /var/log/auth.log
  46. maxretry = 5
  47. [recidive]
  48. enabled = true
  49. filter = recidive
  50. action = hestia[name=RECIDIVE]
  51. logpath = /var/log/fail2ban.log
  52. maxretry = 5
  53. findtime = 86400
  54. bantime = 864000
  55. #Uncomment and add your IPs and or domains to the Whitelist
  56. #[DEFAULT]
  57. #ignoreip = 111.111.111.111 222.222.222.222 subdomain.example.tld example.tld 333.333.333.333