Issue
How to add/remove a country from the firewall Black List?
Environment
- Any distro
- Any control panel
- Imunify360
Solution
1. A country can be added to the Imunify360 whitelist using two options (CLI & UI):
- You can whitelist a country using the command-line interface and the command below:
imunify360-agent blacklist country add COUNTRY_CODE
Make sure to replace COUNTRY_CODE with the actual ISO ALPHA-2 CODE for the country of your choice (you can find the list here).
- You can use the Imunify360 UI > Firewall tab for blacklisting a country:
2. A country can be removed from the firewall blacklist through the Firewall UI using the "Trash" icon or via the CLI with the following command:
imunify360-agent blacklist country delete COUNTRY_CODE
- If you want to remove all blacklisted countries, you will need to write a script for this. For example, you can use the list.txt with the list of blacklisted countries and then execute:
cat list.txt | xargs -n 1 imunify360-agent blacklist country delete
Comments
0 comments
Please sign in to leave a comment.