Plesk

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

Question

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

What is correct syntax for the cli command to add multiple trusted IP addresses in one line?

Answer

  1. Connect to the server via SSH

  2. Run the following command to add 203.0.113.2, 203.0.113.3, 203.0.113.4 IP addresses:

    # plesk bin ip_ban --add-trusted "203.0.113.2 203.0.113.3 203.0.113.4"

IP addresses have to be separated by space and surrounded by quotes.

Additional Information

How to whitelist an IP address in Plesk Fail2Ban

Exit mobile version