Initial commit: homelab configuration and documentation
This commit is contained in:
30
security/fail2ban/jail.local
Normal file
30
security/fail2ban/jail.local
Normal 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
|
||||
Reference in New Issue
Block a user