Advertisement
luisroman80

Configuracion jail.conf

Apr 12th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.23 KB | None | 0 0
  1. CONFIGURACION FAIL2BAN:  archivo  jail.conf
  2. [ssh-iptables]
  3. enabled  = true
  4. filter   = sshd
  5. action   = iptables[name=SSH, port=1221, protocol=tcp]
  6.            sendmail-whois[name=SSH, dest=xxxx@xxxx, sender=xxxxx@xxxxx]
  7. logpath  = /var/log/sshd.log
  8. maxretry = 2
  9.  
  10. [proftpd-iptables]
  11. enabled  = true
  12. filter   = proftpd
  13. action   = iptables[name=ProFTPD, port=ftp, protocol=tcp]
  14.            sendmail-whois[name=ProFTPD, dest=you@example.com]
  15. logpath  = /var/log/proftpd/proftpd.log
  16. maxretry = 2
  17.  
  18. [postfix-tcpwrapper]
  19.  
  20. enabled  = true
  21. filter   = postfix
  22. action   = hostsdeny[file=/not/a/standard/path/hosts.deny]
  23.            sendmail[name=Postfix, dest=xxxx@xxxx]
  24. logpath  = /var/log/postfix.log
  25. bantime  = 15000
  26.  
  27. [vsftpd-notification]
  28.  
  29. enabled  = true
  30. filter   = vsftpd
  31. action   = sendmail-whois[name=VSFTPD, dest=xxxx@xxxx]
  32. logpath  = /var/log/vsftpd.log
  33. maxretry = 5
  34. bantime  = 1800
  35.  
  36. y  esto  es del  dovecot
  37. [dovecot-pop3imap]
  38. enabled  = true
  39. filter   = dovecot-pop3imap
  40. action   = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp]
  41.            sendmail-whois[name=dovecot-pop3imap, dest=root, sender=xxxx@xxxx]
  42. logpath  = /var/log/maillog
  43. maxretry = 2
  44. #findtime = 600
  45. bantime  = 5200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement