feat: enable traefik access logs for fail2ban http jails #15
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/traefik-access-logs-for-fail2ban"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Enables Traefik access logging to support fail2ban HTTP authentication and bot detection jails.
Changes
Traefik Configuration
--accesslog.filepath=/var/log/traefik/access.log--log.filepath=/var/log/traefik/traefik.logDEBUGtoINFO(reduces noise)/var/log/traefikvolume to host filesystemWhy This Matters
Fail2ban needs access to HTTP access logs to detect:
Without this, the
http-authandhttp-botsearchjails cannot function.Deployment
Verification
After deploying, make some HTTP requests and verify:
Related
nixos-server-hardening