Plesk

How to unban an IP address that has been banned by Fail2Ban via Plesk commands?

Question

Answer

  1. Connect to a Plesk server via SSH.

  2. List all banned IP addresses:

    # plesk bin ip_ban --banned

  3. Unban the IP address using the command below. Use IP address and jail name from step 2:

    # plesk bin ip_ban --unban 203.0.113.2,plesk-panel

  4. You can also unban multiple IP addresses by using a command that is similar to the following:

    # plesk bin ip_ban --unban [;203.0.113.2,plesk-panel; 203.0.113.3,plesk-apache]

    Note: Once unbanned, you may whitelist this IP addresses in Plesk at Tools & Settings > IP Address Banning (Fail2Ban) > Trusted IP Addresses.

To learn more about the
plesk bin ip_ban
command-line utility, you should review the information on the following page of the Plesk Obsidian documentation:

ip_ban: IP Address Banning (Fail2Ban) | Plesk Documentation

Additional Information

How to add several IP addresses into whitelist Fail2ban via CLI?

Fail2Ban Jails Management | Plesk Obsidian documentation

Protection Against Brute Force Attacks (Fail2Ban) | Plesk Obsidian documentation

Exit mobile version