unraid 安装fail2ban 教程,docker fail2ban
https://hostloc.com/thread-897351-1-1.html
(出处: 全球主机交流论坛)
上次目录有问题,重启就没用了
docker run -d --name fail2ban --restart always \
--network host \
--cap-add NET_ADMIN \
--cap-add NET_RAW \
-v /mnt/disk3/appdata/fail2ban/data:/data \
-v /var/log:/var/log:ro \
crazymax/fail2ban:latest
新建配置文件/mnt/disk3/appdata/fail2ban/data/jail.d/sshd.conf
[sshd]
enabled = true
chain = INPUT
port = ssh
filter = sshd[mode=aggressive]
logpath = /var/log/syslog
maxretry = 5