# An IP address is blocked after failed logins

UrbeStack sysadmin note about fail2ban. Last updated 30 Nov 2026.

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

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

```
urbestack-ban-list --address 203.0.113.10
```

The command shows the ban's `id`, `jail`, and `service`. The `until` field shows when the ban ends.

Lift the ban using its `id`.

```
urbestack-ban-del --id 13
```

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
```

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
```

The IP address should no longer appear in the set.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
