guanghulab/server/novel-db/security/fail2ban-action-ban-log.conf
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

7 lines
383 B
Plaintext

# fail2ban 封禁日志动作 · 由 deploy-novel-mirror-shield.yml 上传
# 路径: /etc/fail2ban/action.d/novel-ban-log.conf
# 守护: 铸渊 · ICE-GL-ZY001
[Definition]
actionban = echo "$(date -Iseconds) BAN <ip> jail=<name> attempts=<failures>" >> /var/log/novel-shield-bans.log
actionunban = echo "$(date -Iseconds) UNBAN <ip> jail=<name>" >> /var/log/novel-shield-bans.log