Issue
It's not possible to move all IPs between Gray and Black lists at a time using Imunify360 UI, only 100 items can be selected.
Environment
- Imunify360
- Any supported OS
- Any supported panel
Solution
Using the following CLI commands, you can do it faster than by portions of 100 items (`--limit` directive can be set to any other values, like 1000 or 10000):
imunify360-agent ip-list local list --purpose captcha --limit 500 |awk '{ print $1 }' |sed 1d > graylist.txt && < ./graylist.txt xargs imunify360-agent ip-list local add --purpose drop
or
imunify360-agent ip-list local list --purpose splashscreen --limit 500 |awk '{ print $1 }' |sed 1d > graylist.txt && < ./graylist.txt xargs imunify360-agent ip-list local add --purpose drop
Useful links
Comments
0 comments
Please sign in to leave a comment.