Blog

Firewall: block addresses, open or close ports and unban after fail2ban

What the Firewall page does in AI Hosting Panel: automatic blocks after failed sign-ins, the always-allowed list, open and closed ports, and how to unban an address that fail2ban blocked.

Firewall: block addresses, open or close ports and unban after fail2ban

2026-11-22

The Firewall page holds the panel's own block list, the server's open ports, and the brute-force protection of fail2ban. The panel refuses blocked addresses before any page or API call. The machine the panel runs on is never blocked.

Automatic blocks

After 5 failed sign-ins within 10 minutes, an address is blocked for 60 minutes. To block an address by hand, type it in Address, set the minutes (or leave it empty to block until removed), add a reason, and press Block address. The blocked addresses are listed below with the reason and who blocked them.

Always allowed

Addresses in the Always allowed list are never blocked, even by an automatic block. Add the address you sign in from, so that a few failed attempts elsewhere cannot lock you out.

Firewall page with the panel firewall block form, the always-allowed list and the open ports card
The Firewall page: the block form, the always-allowed list, and the open ports below.

Open and close ports

Ports 22 (SSH) and 2087 (the panel) are marked as needed for access. Closing them can lock you out of the server, so change them only with a second way in ready.

  1. In Open ports, choose the Port and the Protocol (tcp or udp), then press Open port.
  2. To close a port, press Close on its row.

Unban an address from fail2ban

The brute-force protection card lists the fail2ban jail for sshd and the addresses it has banned. Type an address in Address to unban and press Unban. If no address is banned, the card says so.

All posts