An IP address is blocked after failed logins
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.10The command shows the ban's
id,jail, andservice. Theuntilfield shows when the ban ends.Lift the ban using its
id.urbestack-ban-del --id 13If 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.10Check the firewall set for the affected services. Use
ban4for all services,banmail4for mail only, orbanweb4for the sites only. This command checksban4.nft list set inet urbestack ban4The IP address should no longer appear in the set.