|
|
@ -9,6 +9,12 @@ group = root |
|
|
|
daemon = yes |
|
|
|
daemon = yes |
|
|
|
|
|
|
|
|
|
|
|
[defaults] |
|
|
|
[defaults] |
|
|
|
|
|
|
|
enabled = no |
|
|
|
|
|
|
|
bantime = 3600 |
|
|
|
|
|
|
|
findtime = 300 |
|
|
|
|
|
|
|
maxretry = 5 |
|
|
|
|
|
|
|
source = files:/var/log/messages |
|
|
|
|
|
|
|
; filter = preg:/etc/f2b/filters/$someservice.preg |
|
|
|
backend = exec-ipset:banned |
|
|
|
backend = exec-ipset:banned |
|
|
|
|
|
|
|
|
|
|
|
[filter:preg] |
|
|
|
[filter:preg] |
|
|
@ -26,5 +32,5 @@ unban = /sbin/ipset -! del <ID> <IP> |
|
|
|
timeout = 2 |
|
|
|
timeout = 2 |
|
|
|
|
|
|
|
|
|
|
|
[jail:ssh] |
|
|
|
[jail:ssh] |
|
|
|
source = files:/var/log/*.log |
|
|
|
source = files:/var/log/auth.log |
|
|
|
filter = preg:filters/ssh.preg |
|
|
|
filter = preg:/etc/f2b/filters/ssh.preg |
|
|
|