delete ip range from imunify360 graylist
  1. Forums
  2. Imunify360
  3. Imunify360 and Imunify Sensor
  1. Havri
  2. Friday, 09 March 2018
  3.  Subscribe via email

Is there a way to delete a range of IPs from the Imunify360 graylist? For example, I want to unblock all IPs from the range I searched for the range of IPs by not entering the last octet of the IP, like so:

[[email protected] csf]# imunify360-agent graylist ip list --by-abuser-ip 192.168.5.
IP TTL COUNTRY 1071182 NA 1209984 NA 958323 NA 1210757 NA

I noticed that imunify agent does understand multiple arguments, like so:

imunify360-agent graylist ip delete

Besides having to make a workaround using multiple commands of "imunify360-agent graylist ip delete", giving multiple arguments to one command or some other bash iteration, is there a way to unblock an IP range specified by me?

Thank you.
Rate this post:
  1. 09.03.2018 17:03:33
  2. # 1
Posts: 187
Joined: 31.01.2017
There's no built-in tools to perform bulk operations with Imunify360 lists as of the current version.

However, this can be done by issuing:
cat graylist.ips | xargs | imunify360-agent graylist ip delete

Given you have a list of IPs to remove in graylist.ips file (you may use awk utility to build it)
  • Page :
  • 1

There are no replies made for this post yet.
Be one of the first to reply to this post!
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.