SHARE
TWEET

t01

a guest Nov 12th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [DEFAULT]
  2. ignoreip = 127.0.0.1
  3. bantime  = 6048000
  4. findtime  = 600
  5. maxretry = 5
  6. backend = auto
  7.  
  8. [asterisk-iptables]
  9. enabled  = true
  10. filter   = asterisk
  11. action   = iptables-allports[name=SIP, protocol=all]
  12.            sendmail[name=VICIBOX-ASTERISK-DETECTOR, dest=support@crm.tn, sender=vicibox@crm.tn]
  13. logpath  = /var/log/asterisk/messages
  14. maxretry = 3
  15. bantime = 6048000
  16.  
  17. [ssh-iptables]
  18. enabled  = true
  19. filter   = sshd
  20. action   = iptables[name=SSH, port=ssh, protocol=tcp]
  21.            sendmail[name=VICIBOX-SSH-DETECTOR, dest=yourmail, sender=yourmail]
  22. logpath  = /var/log/messages
  23. maxretry = 3
  24. bantime = 6048000
  25.  
  26. [apache-tcpwrapper]
  27. enabled  = true
  28. filter   = apache-auth
  29. action   = iptables-allports[name=apache-auth, port=http, protocol=tcp]
  30.            sendmail[name=VICIBOX-APACHE-DETECTOR, dest=yourmail, sender=yourmail]
  31. logpath  = /var/log/apache2/error_log
  32. maxretry = 3
  33.  
  34. [apache-badbots]
  35. enabled  = true
  36. filter   = apache-badbots
  37. action   = iptables-multiport[name=BadBots, port="http,https"]
  38.            sendmail[name=VICIBOX-BadBots-DETECTOR, dest=yourmail, sender=yourmail]
  39. logpath  = /var/log/apache2/*access_log
  40. bantime  = 6048000
  41. maxretry = 1
  42.  
  43. # Jail for more extended banning of persistent abusers
  44. # !!! WARNING !!!
  45. #   Make sure that your loglevel specified in fail2ban.conf/.local
  46. #   is not at DEBUG level -- which might then cause fail2ban to fall into
  47. #   an infinite loop constantly feeding itself with non-informative lines
  48. [recidive]
  49. enabled  = true
  50. filter   = recidive
  51. logpath  = /var/log/fail2ban.log*
  52. action   = iptables-allports[name=recidive, protocol=all]
  53.            sendmail[name=VICIBOX-BADBOY-DETECTOR, dest=yourmail, sender=yourmail]
  54. bantime  = 6048000  ; 10 weeks
  55. #findtime = 60480000   ; 5 hours
  56. findtime = 43200   ; 12 hours
  57. maxretry = 5
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top