1
0

waouw.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # WaouW Fail2Ban Jails
  2. # Protection automatique du boîtier
  3. [DEFAULT]
  4. bantime = 3600
  5. findtime = 600
  6. maxretry = 5
  7. banaction = iptables-allports
  8. # ── SSH Protection ──────────────────────────────────────────────
  9. [sshd]
  10. enabled = true
  11. port = ssh
  12. filter = sshd
  13. logpath = /var/log/auth.log
  14. backend = auto
  15. maxretry = 3
  16. bantime = 7200
  17. findtime = 300
  18. # ── Nginx/Traefik Auth Failures ─────────────────────────────────
  19. [waouw-auth]
  20. enabled = true
  21. port = http,https
  22. filter = waouw-auth
  23. logpath = /var/log/traefik/access.log
  24. maxretry = 5
  25. bantime = 3600
  26. findtime = 600
  27. # ── Postfix SMTP ────────────────────────────────────────────────
  28. [postfix]
  29. enabled = true
  30. port = smtp,465,submission
  31. filter = postfix
  32. logpath = /var/log/mail.log
  33. maxretry = 5
  34. bantime = 3600
  35. # ── Dovecot IMAP ───────────────────────────────────────────────
  36. [dovecot]
  37. enabled = true
  38. port = pop3,pop3s,imap,imaps
  39. filter = dovecot
  40. logpath = /var/log/mail.log
  41. maxretry = 5
  42. bantime = 3600
  43. # ── Repeat Offenders (ban longer on repeat) ─────────────────────
  44. [recidive]
  45. enabled = true
  46. filter = recidive
  47. logpath = /var/log/fail2ban.log
  48. bantime = 86400
  49. findtime = 86400
  50. maxretry = 3