charlas_eventos:start
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previa | Próxima revisiónAmbos lados, revisión siguiente | ||
charlas_eventos:start [2010/08/23 17:49] – cayu | charlas_eventos:start [2010/08/27 15:07] – cayu | ||
---|---|---|---|
Línea 147: | Línea 147: | ||
Fail2ban lee los logs (por ejemplo) / | Fail2ban lee los logs (por ejemplo) / | ||
+ | < | ||
+ | apt-get install fail2ban | ||
+ | </ | ||
+ | **/ | ||
+ | |||
+ | < | ||
+ | [DEFAULT] | ||
+ | # " | ||
+ | ignoreip = 127.0.0.1 192.168.0.99 | ||
+ | bantime | ||
+ | maxretry = 3 | ||
+ | |||
+ | # " | ||
+ | # options are " | ||
+ | # yoh: For some reason Debian shipped python-gamin didn't work as expected | ||
+ | # This issue left ToDo, so polling is default backend for now | ||
+ | backend = polling | ||
+ | |||
+ | # | ||
+ | # Destination email address used solely for the interpolations in | ||
+ | # jail.{conf, | ||
+ | destemail = root@localhost | ||
+ | |||
+ | # Default action to take: ban only | ||
+ | action = iptables[name=%(__name__)s, | ||
+ | |||
+ | [ssh] | ||
+ | |||
+ | enabled = true | ||
+ | port = ssh | ||
+ | filter | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [apache] | ||
+ | |||
+ | enabled = true | ||
+ | port = http | ||
+ | filter | ||
+ | logpath = / | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [apache-noscript] | ||
+ | |||
+ | enabled = false | ||
+ | port = http | ||
+ | filter | ||
+ | logpath = / | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [vsftpd] | ||
+ | |||
+ | enabled | ||
+ | port = ftp | ||
+ | filter | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [proftpd] | ||
+ | |||
+ | enabled | ||
+ | port = ftp | ||
+ | filter | ||
+ | logpath | ||
+ | failregex = proftpd: \(pam_unix\) authentication failure; .* rhost=< | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [wuftpd] | ||
+ | |||
+ | enabled | ||
+ | port = ftp | ||
+ | filter | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [postfix] | ||
+ | |||
+ | enabled | ||
+ | port = smtp | ||
+ | filter | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [courierpop3] | ||
+ | |||
+ | enabled | ||
+ | port = pop3 | ||
+ | filter | ||
+ | failregex = courierpop3login: | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [courierimap] | ||
+ | |||
+ | enabled | ||
+ | port = imap2 | ||
+ | filter | ||
+ | failregex = imapd: LOGIN FAILED.*ip=\[.*:< | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | |||
+ | |||
+ | [sasl] | ||
+ | |||
+ | enabled | ||
+ | port = smtp | ||
+ | filter | ||
+ | failregex = warning: [-._\w]+\[< | ||
+ | logpath | ||
+ | maxretry = 5 | ||
+ | </ |
charlas_eventos/start.txt · Última modificación: 2014/10/22 13:42 por cayu