Initial commit: homelab configuration and documentation

This commit is contained in:
2025-11-29 19:03:14 +00:00
commit 0769ca6888
72 changed files with 7806 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
[Definition]
# Portainer authentication failure filter
failregex = ^.*"remote_addr":"<HOST>".*"status":401.*$
^.*Failed login attempt from <HOST>.*$
ignoreregex =

View File

@@ -0,0 +1,5 @@
[Definition]
# Traefik authentication failure filter
failregex = ^<HOST> - \S+ \[.*\] "\S+ \S+ \S+" 401 .*$
^.*ClientIP":"<HOST>".*"RequestMethod":"\S+".*"OriginStatus":401.*$
ignoreregex =

View File

@@ -0,0 +1,30 @@
[DEFAULT]
# Ban duration: 1 hour
bantime = 3600
# Find time window: 10 minutes
findtime = 600
# Max retry attempts before ban
maxretry = 5
# Backend for monitoring
backend = systemd
[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
[portainer]
enabled = true
port = 9000,9443
filter = portainer
logpath = /var/log/portainer/portainer.log
maxretry = 5
[traefik-auth]
enabled = true
port = http,https
filter = traefik-auth
logpath = /var/log/traefik/access.log
maxretry = 5