Plesk for Linux
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
-
Connect to the server via SSH
-
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.
Note: For a description add: -description "reason for whitelisting"
Comments
5 comments
Is there a way to use this command and add a description as we can do by GUI ?
Although it is undocumented on the web docs, there is the option to add
to the command.
Thx !
Thank you Nico for answering the question, it was added to the article
May I suggest updating the outdated documentation?
Please sign in to leave a comment.