First commit to filter/jails Fail2ban

This commit is contained in:
Yuri-Lima
2025-09-01 13:09:39 +02:00
parent 16c737c816
commit c1ce709c41
11 changed files with 166 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
[DEFAULT]
banaction = nftables-multiport
backend = auto
findtime = 10m
bantime = 30m
maxretry = 3
bantime.increment = false
bantime.factor = 1
bantime.maxtime = 24h
mode = aggressive
[sshd]
enabled = true
port = 2522
filter = sshd
logpath = /var/log/auth.log
action = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="tcp"]