Announcement

Collapse
No announcement yet.

delete ip range from imunify360 graylist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • delete ip range from imunify360 graylist

    Hello,

    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 192.168.5.0/29. I searched for the range of IPs by not entering the last octet of the IP, like so:

    Code:
    [root@server01 csf]# imunify360-agent graylist ip list --by-abuser-ip 192.168.5.
    
    IP             TTL      COUNTRY
    
    192.168.5.0  1071182  NA
    
    192.168.5.4  1209984  NA
    
    192.168.5.6  958323   NA
    
    192.168.5.7  1210757  NA
    I noticed that imunify agent does understand multiple arguments, like so:

    > imunify360-agent graylist ip delete 192.168.5.0 192.168.5.4 192.168.5.6 192.168.5.7

    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.

  • #2
    Theres 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)

    Comment

    Working...
    X