Why it matters
Every server on the internet gets SSH and login brute-force attempts within minutes. fail2ban blocks addresses that keep failing, but its config is easy to get subtly wrong, such as a jail that watches a log file that doesn't exist.
This writes a jail.local with the right log paths and backend for your system and a filter for WordPress logins, which fail2ban doesn't ship.
How to use it
- Type or paste your input; the example shows the format.
- Press Build jails. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
jail.conf or jail.local?
Always jail.local (or files in jail.d). jail.conf is overwritten when fail2ban is upgraded.
Why won't the sshd jail start on Debian 12?
Debian 12 doesn't write /var/log/auth.log by default. Use the systemd backend, which this builder sets for sshd when you choose it.
How do I unban myself?
fail2ban-client set sshd unbanip YOUR.IP. Put your own address in the ignore list to avoid it.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.