Get your free beta license ↗
Firewall and bans · fail2ban

An IP address is blocked after failed logins

Last updated 30 Nov 2026
Summary

Connections from one IP address time out while others connect. After fail2ban counts enough failed logins, UrbeStack bans the IP address in the firewall, and you can lift the ban with one command.

Symptoms

SSH, mail, or your sites time out when you connect from one IP address. They work from other IP addresses.

Cause

fail2ban watches the logs for failed logins. When an IP address reaches a rule's limit, UrbeStack records the ban and adds the IP address to the firewall's ban set for the duration specified by the rule.

The firewall drops packets from the banned IP address, so the client times out waiting for a response. Depending on the rule, the ban covers all services, mail only, or the sites only.

Resolution

  1. From another IP address or from your hosting provider's console, find the ban.

    urbestack-ban-list --address 203.0.113.10
  2. The command shows the ban's id, jail, and service. The until field shows when the ban ends.

  3. Lift the ban using its id.

    urbestack-ban-del --id 13
  4. If an IP address must never be banned, such as your office's IP address, add it to the allowed list. This also lifts any active bans for that IP address.

    urbestack-ban-allow --address 203.0.113.10
  5. Check the firewall set for the affected services. Use ban4 for all services, banmail4 for mail only, or banweb4 for the sites only. This command checks ban4.

    nft list set inet urbestack ban4
  6. The IP address should no longer appear in the set.