2026-09-19 18:21:02 +03:00
|
|
|
# Сгенерировано deploy/install.sh — не редактируйте вручную.
|
|
|
|
|
# Jail для неудачных входов в приложение (AGENT.md 9.6).
|
|
|
|
|
[glchat-auth]
|
|
|
|
|
enabled = true
|
|
|
|
|
filter = glchat-auth
|
|
|
|
|
logpath = /opt/glchat/caddy/logs/access.log
|
|
|
|
|
maxretry = 10
|
|
|
|
|
findtime = 5m
|
|
|
|
|
bantime = 30m
|
|
|
|
|
action = iptables-allports[name=glchat-auth]
|
|
|
|
|
|
|
|
|
|
[sshd]
|
|
|
|
|
enabled = true
|
2026-09-19 19:26:26 +03:00
|
|
|
port = ${SSH_PORT}
|
2026-09-19 18:21:02 +03:00
|
|
|
maxretry = 5
|
|
|
|
|
findtime = 10m
|
|
|
|
|
bantime = 1h
|
|
|
|
|
action = iptables-allports[name=sshd]
|
|
|
|
|
|
|
|
|
|
[recidive]
|
|
|
|
|
enabled = true
|
|
|
|
|
logpath = /var/log/fail2ban.log
|
|
|
|
|
banaction = iptables-allports
|
|
|
|
|
bantime = 1w
|
|
|
|
|
findtime = 1d
|
|
|
|
|
maxretry = 3
|
|
|
|
|
action = iptables-allports[name=recidive]
|