Configuring Fail2ban for Traefik Reverse Proxy

This page summarizes the projects mentioned and recommended in the original post on /r/selfhosted

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • traefik

    The Cloud Native Application Proxy

  • I've played a bit with Traefik as reverse proxy and wanted to implement fail2ban for it, after switching from Nginx Proxy Manager. It finally works and successfully bans threat actors that conduct malicous HTTP requests. As soon as a multitude of HTTP errors are detected by fail2ban in Traefik's JSON access logs, the attacker's IP address is banned. I am using a dockerized fail2ban container and ban locally via iptables as well as optionally on Cloudflare, using Cloudflare's API. A ban notification via Telegram can also be configured.

  • Fail2Ban

    Daemon to ban hosts that cause multiple authentication errors

  • I've played a bit with Traefik as reverse proxy and wanted to implement fail2ban for it, after switching from Nginx Proxy Manager. It finally works and successfully bans threat actors that conduct malicous HTTP requests. As soon as a multitude of HTTP errors are detected by fail2ban in Traefik's JSON access logs, the attacker's IP address is banned. I am using a dockerized fail2ban container and ban locally via iptables as well as optionally on Cloudflare, using Cloudflare's API. A ban notification via Telegram can also be configured.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • F2BFilters

    Dockerized Fail2ban with filters and actions for various SSL proxies

  • Good point. Noticed it by myself during the Traefik setup. The GitHub repo contains an example log rotation script. Works flawlessly. Just put it on your server and point it to the traefik logs. https://github.com/l4rm4nd/F2BFilters/blob/main/examples/traefik/logrotate_example.txt

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Fail2Ban

    1 project | /r/patient_hackernews | 8 Oct 2023
  • Fail2Ban – Daemon to ban hosts that cause multiple authentication errors

    1 project | /r/hypeurls | 8 Oct 2023
  • I am (to be) a web designer, how to ensure security on a vps?

    1 project | /r/VPS | 10 Jun 2023
  • fail2ban not notifying Cloudflare

    1 project | /r/CloudFlare | 27 Apr 2023
  • Firewall rules beyond "deny incoming, enable only the ports that you need"

    2 projects | /r/linuxadmin | 21 Apr 2023