Applicable to:
- Plesk for Linux
Question
- How to unban an IP address that has been banned by Fail2Ban via Plesk commands?
- Which command-line Plesk utility can I use to unban multiple IP addresses that have been banned by Fail2Ban?
Answer
-
Connect to a Plesk server via SSH.
-
List all banned IP addresses:
# plesk bin ip_ban --banned
-
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
-
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
Comments
0 comments
Please sign in to leave a comment.