The ip_ban
utility allows managing IP addresse banning (Fail2Ban).
With this utility you can perform the following operations:
- View and update IP address banning (Fail2Ban) settings
- View the list of trusted IP addresses, add and remove IP addresses to
the list of trusted IP addresses - View the list of banned IP addresses and unban IP addresses
Usage
ip_ban <command>
Example
The following command sets the IP address ban period to 120 seconds,
the time interval for detection of subsequent attacks to 120 seconds,
and the number of failures before the IP address is banned to 3:
plesk bin ip_ban --update -ban_period 120 -ban_time_window 120 -max_retries 3
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--enable |
Enable IP address banning. |
To enable IP address banning: plesk bin ip_ban --enable |
|
--disable |
Disable IP address banning. |
To disable IP address banning: plesk bin ip_ban --disable |
|
--update or -u
|
Updates IP address banning (Fail2Ban) settings. |
To set the IP address ban period to 120 seconds, the time plesk bin ip_ban --update -ban_period 120 -ban_time_window 120 -max_retries 3 or plesk bin… |