Prerequisites
Before unbanning an IP, make sure you have:
- SSH access to your VPS
- Root or sudo privileges
- The IP address you want to unban
Method 1: Unban IP via HestiaCP Web Interface
Step 1: Log in to HestiaCP
https://YOUR_SERVER_IP:8083
Step 2: Navigate to SERVER → Firewall
Click on SERVER, then Firewall tab.
Step 3: Find Banned IP
In the Fail2ban section, find the IP you want to unban.
Step 4: Click Unban
Click the Unban icon next to the IP address.
Method 2: Unban via SSH Command Line
First, find which jail banned the IP:
fail2ban-client status
Check banned IPs in a jail:
fail2ban-client status sshd
Unban IP from specific jail:
fail2ban-client set sshd unbanip 203.0.113.50
Unban IP from all jails:
for jail in $(fail2ban-client status | grep "Jail list" | sed 's/.*Jail list://;s/,//g'); do
fail2ban-client set $jail unbanip 203.0.113.50
done
Verify IP is Unbanned
fail2ban-client status sshd | grep "203.0.113.50"
Should return no results.
Flush All Bans (All IPs)
fail2ban-client flush
Flush specific jail:
fail2ban-client reload sshd
✅ IP has been unbanned successfully.