Skip to content
Shellbay

Security & Hardening · about 1 min · 3 steps

Unban addresses in Fail2ban

Lifts Fail2ban bans on addresses, for example after you mistyped your password too often.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

Before you start

  • Fail2ban isn't installed. Run the Fail2ban for SSH workflow first.

What it changes on your server

  • Removes the addresses from every Fail2ban jail now. Fail2ban's settings aren't changed.
  • If the address keeps failing to sign in, it will be banned again.

What Shellbay asks you

  1. Which addresses should be unbanned?

    Enter single IP addresses, separated by commas. Fail2ban status lists the banned ones; you can find your own address on a site like checkip.amazonaws.com.

    Addresses
    Up to 20 IP addresses or ranges

    Example: 203.0.113.10

Steps

  1. Check Fail2ban is running
  2. Lift the bans
  3. Check they're no longer banned

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • Those addresses can connect again. To stop an address you use from being banned, add it to the never-ban list with the Fail2ban for SSH workflow.