guanghulab/server/novel-db/security/fail2ban-action-ban-log.conf

7 lines
383 B
Plaintext
Raw Permalink Normal View History

# 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