No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_fail2ban_jail.local.j2 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [DEFAULT]
  2. ignoreip = 127.0.0.1 {{ ansible_default_ipv4.address }} {{ ' '.join(friendly_networks) }}
  3. bantime = 86400
  4. destemail = {{ admin_email }}
  5. banaction = iptables-multiport
  6. action = %(action_)s
  7. # JAILS
  8. [sshd]
  9. enabled = true
  10. maxretry = 3
  11. [pam-generic]
  12. enabled = true
  13. banaction = iptables-allports
  14. [sshd-ddos]
  15. enabled = true
  16. [apache-auth]
  17. enabled = true
  18. [apache-badbots]
  19. enabled = true
  20. [apache-botsearch]
  21. enabled = true
  22. [apache-common]
  23. enabled = true
  24. [apache-fakegooglebot]
  25. enabled = true
  26. [apache-modsecurity]
  27. enabled = true
  28. [apache-nohome]
  29. enabled = true
  30. [apache-noscript]
  31. enabled = true
  32. [apache-overflows]
  33. enabled = true
  34. [apache-pass]
  35. enabled = true
  36. [apache-shellshock]
  37. enabled = true
  38. [postfix]
  39. enabled = true
  40. maxretry = 1
  41. [dovecot-pop3imap]
  42. enabled = true
  43. filter = dovecot-pop3imap
  44. action = iptables-multiport[name=dovecot-pop3imap, port="pop3,imap,993,995", protocol=tcp]
  45. logpath = /var/log/mail.log
  46. maxretry = 20
  47. findtime = 1200
  48. bantime = 1200
  49. [gitea]
  50. enabled = true
  51. port = http,https
  52. filter = gitea
  53. logpath = /data/gitea/log/gitea.log
  54. maxretry = 10
  55. findtime = 3600
  56. bantime = 900
  57. action = iptables-allports