ZWIEGNET Linux Consultants

fail2ban Consulting & Hardening

Intelligent Intrusion Prevention for Linux Servers

Professional fail2ban consulting — custom jail design, advanced filters, action hardening, rate limiting, integration with firewalld/iptables/nftables, and protection against brute-force, SSH, web, and email attacks on Linux.

Get fail2ban Expertise

Our fail2ban Consulting Services

fail2ban is a critical defense against brute-force attacks on Linux servers. Zwiegnet provides expert configuration, tuning, and hardening of fail2ban to protect SSH, web services (Apache/NGINX), email (Postfix/Dovecot), and custom applications with intelligent, dynamic banning.

Our fail2ban services include:

  • Custom Jail Design & Filters – Create tailored jails for SSH, Apache, NGINX, Postfix, Dovecot, WordPress, and custom services; advanced regex filters for precise attack detection.
  • Action Hardening & Integration – Use firewalld, iptables, nftables, or ipset for banning; custom actions (email alerts, Slack/Discord notifications), and persistent bans.
  • Rate Limiting & Ban Policies – Fine-tune findtime, maxretry, bantime, and ignoreip lists to minimize false positives while blocking threats effectively.
  • Security Hardening – Protect fail2ban itself (secure log paths, restricted access), prevent ban evasion, and comply with PCI-DSS, HIPAA, NIST standards.
  • High Availability & Clustering – Synchronize bans across multiple servers with Redis or database backends for clustered environments.
  • Monitoring & Logging – Integrate fail2ban logs with auditd, rsyslog, Prometheus, or SIEM; real-time alerts for ban events and failed logins.
  • Migration & Modernization – Upgrade legacy fail2ban to current versions, migrate from iptables to nftables/firewalld, and integrate with modern security stacks.
  • Troubleshooting & Recovery – Diagnose false bans, filter failures, ban loop issues, and rapid recovery from misconfiguration.

Ideal for: enterprises, financial institutions, healthcare providers, e-commerce, SaaS platforms, and any organization needing robust brute-force protection on Linux servers.

Located between Madison and Milwaukee, Wisconsin since 2009 — direct access to fail2ban specialists with proven experience in secure Linux environments.

Inquire About fail2ban Consulting

Jails, filters, and the ban action

fail2ban tails a log or a journal, counts matches, and runs an action. The stock sshd jail watches the SSH log and bans the source address. jail.local overrides jail.conf. Editing the conf file means the next package update replaces your changes. bantime, findtime, and maxretry are the whole policy: how many matches inside the window earn a ban, and how long the ban lasts.

The action has to match the firewall that is actually installed. banaction = firewallcmd-rich-rules on a host whose drops are nftables-only will report success and ban nothing you can see with iptables -L. fail2ban-client status sshd shows the jail's idea of the banned set. Then check the firewall's idea, with nft list ruleset or firewall-cmd --list-all.

A filter that never matches is a regex problem, not a ban-time problem. fail2ban-regex /var/log/secure /etc/fail2ban/filter.d/sshd.conf prints the hits. Journald hosts should set backend = systemd for that jail, or fail2ban reads a file rsyslog is no longer writing. Recidive is a second jail that watches fail2ban's own log and bans repeat offenders for longer.

Point bans at firewalld and the noise at SSH.

Questions

fail2ban says the address is banned, but the host still answers. Why?

The jail's action did not insert a rule in the firewall you are running. Check fail2ban-client status for the jail, then nft list ruleset or firewall-cmd. Change banaction to the backend that owns the filter table, and reload the jail.

Why did my own address get banned during a test?

The test generated maxretry failures inside findtime, and ignoreip did not include your address. Add it before you test. If you are already locked out, the console or an out-of-band session is how you remove the ban.