You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
[main]
|
|
|
|
includes = /etc/f2b/conf.d
|
|
|
|
logdest = stderr
|
|
|
|
logfile = /var/log/f2b.log
|
|
|
|
loglevel = info
|
|
|
|
user = root
|
|
|
|
group = root
|
|
|
|
daemon = yes
|
|
|
|
|
|
|
|
[defaults]
|
|
|
|
backend = exec-ipset:banned
|
|
|
|
|
|
|
|
[filter:preg]
|
|
|
|
load = libf2b_filter_preg.so
|
|
|
|
|
|
|
|
[backend:exec-ipset]
|
|
|
|
load = libf2b_backend_exec.so
|
|
|
|
start = /usr/sbin/ipset create <ID> hash:ip
|
|
|
|
stop = /usr/sbin/ipset destroy <ID>
|
|
|
|
ban = /usr/sbin/ipset add <ID> <IP>
|
|
|
|
check = /usr/sbin/ipset test <ID> <IP>
|
|
|
|
unban = /usr/sbin/ipset del <ID> <IP>
|
|
|
|
timeout = 1
|
|
|
|
|
|
|
|
[jail:ssh]
|
|
|
|
source = files:/var/log/*.log
|
|
|
|
filter = preg:filters/preg/ssh
|