Start a project

Tool 434 of 450 · fail2ban

fail2ban Jail Builder

Build fail2ban jails for SSH, nginx, Apache or WordPress logins with ban times, retries and ignore lists.

fail2ban Jail Builder

Your input

Result

jail.local
filter.d/wordpress.conf
JailWatchesPort

    01

    What it does

    Build fail2ban jails for SSH, nginx, Apache or WordPress logins with ban times, retries and ignore lists.

    • sshd, nginx (auth, limit-req, bot search), Apache, WordPress, Postfix, Dovecot and recidive
    • Ban time, find time and max retries with unit checks
    • Incremental bans for repeat offenders
    • nftables, iptables, ufw or firewalld ban actions

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    jail.local, a WordPress filter and test commands, with a Copy and a Download button on every result.

    • fail2ban
    • SSH
    • Security

    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

    1. Type or paste your input; the example shows the format.
    2. Press Build jails. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. 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.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk