Advertisement
Guest User

Untitled

a guest
Nov 16th, 2021
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1.  
  2. [INCLUDES]
  3.  
  4. before = paths-arch.conf
  5.  
  6. [DEFAULT]
  7.  
  8. # ignorecommand = /path/to/command <ip>
  9. ignorecommand =
  10.  
  11. # "bantime" is the number of seconds that a host is banned.
  12. bantime = 10m
  13.  
  14. # A host is banned if it has generated "maxretry" during the last "findtime"
  15. # seconds.
  16. findtime = 10m
  17.  
  18. # "maxretry" is the number of failures before a host get banned.
  19. maxretry = 3
  20.  
  21. # "maxmatches" is the number of matches stored in ticket (resolvable via tag <matches> in actions).
  22. maxmatches = %(maxretry)s
  23.  
  24. backend = auto
  25. usedns = warn
  26. logencoding = auto
  27. enabled = false
  28. mode = normal
  29.  
  30. filter = %(__name__)s[mode=%(mode)s]
  31.  
  32.  
  33. #
  34. # ACTIONS
  35. #
  36.  
  37. destemail = [email protected]
  38.  
  39. mta = mail
  40. protocol = tcp
  41. chain = <known/chain>
  42. port = 0:65535
  43.  
  44. fail2ban_agent = Fail2Ban/%(fail2ban_version)s
  45.  
  46. #
  47. # Action shortcuts. To be used to define action parameter
  48.  
  49. banaction = iptables-multiport
  50. banaction_allports = iptables-allports
  51.  
  52. # The simplest action to take: ban only
  53. action_ = %(banaction)s[port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
  54.  
  55. # custom action
  56. action_cust = %(action_)s
  57. mail-whois-lines[sender="%(sender)s", dest="%(destemail)s", logpath="%(logpath)s", chain="%(chain)s"]
  58.  
  59. action = %(action_)s
  60.  
  61.  
  62. #
  63. # JAILS
  64. #
  65.  
  66. [sshd]
  67.  
  68. # To use more aggressive sshd modes set filter parameter "mode" in jail.local:
  69. # normal (default), ddos, extra or aggressive (combines all).
  70. # See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details.
  71. #mode = normal
  72. enabled = true
  73. port = 31222
  74. logpath = %(sshd_log)s
  75. backend = %(sshd_backend)s
  76. action = %(action_cust)s
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement