Skip to content

Conversation

@Spiev
Copy link
Owner

@Spiev Spiev commented Jan 26, 2026

Replace service-specific jails with generic nginx-based jails that protect all services. Only 2 of the original 15 jails were catching traffic - the new configuration uses the proven filter patterns.

New jails:

  • nginx-4xx: Blocks 401/403/404 responses (all services)
  • nginx-malicious-uri: Blocks probing for wp-admin, .env, phpmyadmin, etc.
  • homeassistant-auth: Unchanged (uses HA log, not nginx)
  • recidive: Unchanged

Removed:

  • immich-auth, immich-rate-limit, immich-scan
  • paperless-auth, paperless-rate-limit, paperless-scan
  • freshrss-auth, freshrss-rate-limit, freshrss-scan
  • homeassistant-rate-limit, homeassistant-scan
  • Non-matching filters: nginx-auth-failed, nginx-rate-limit-abuse, nginx-forbidden-scan, nginx-immich-proxy

Replace service-specific jails with generic nginx-based jails that
protect all services. Only 2 of the original 15 jails were catching
traffic - the new configuration uses the proven filter patterns.

New jails:
- nginx-4xx: Blocks 401/403/404 responses (all services)
- nginx-malicious-uri: Blocks probing for wp-admin, .env, phpmyadmin, etc.
- homeassistant-auth: Unchanged (uses HA log, not nginx)
- recidive: Unchanged

Removed:
- immich-auth, immich-rate-limit, immich-scan
- paperless-auth, paperless-rate-limit, paperless-scan
- freshrss-auth, freshrss-rate-limit, freshrss-scan
- homeassistant-rate-limit, homeassistant-scan
- Non-matching filters: nginx-auth-failed, nginx-rate-limit-abuse,
  nginx-forbidden-scan, nginx-immich-proxy

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Spiev Spiev merged commit d9f318c into main Jan 26, 2026
1 check passed
@Spiev Spiev deleted the refactor/fail2ban-consolidation branch January 26, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants