Jul 22 - Update protect admin page with fail2ban

This commit is contained in:
2026-07-22 16:41:08 -04:00
parent ade7c5b33c
commit 8533cbe27c
9 changed files with 254 additions and 23 deletions
+16
View File
@@ -0,0 +1,16 @@
# fail2ban jail for JQC Features admin.
# Install to: /etc/fail2ban/jail.d/jqc-admin.local
#
# Bans an IP after `maxretry` failed admin logins within `findtime` seconds.
# Adjust logpath to your deployment directory.
[jqc-admin]
enabled = true
filter = jqc-admin
port = http,https
logpath = /home/jqc/jqc_features/logs/auth.log
maxretry = 5
findtime = 600
bantime = 3600
# Optional: escalate repeat offenders (uncomment if using fail2ban >= 0.11)
# bantime.increment = true