Imunify360 Agent

 imunify360-agent blocked-port-ip  edit 2087:tcp --ips 104.28.0.0/16 --comment "New WARP IPS"
 ```

 ```bash
 imunify360-agent blocked-port-ip  edit 2083:tcp --ips 104.28.0.0/16 --comment "New WARP IPS"
 ```

 ```
 imunify360-agent blocked-port-ip  edit 2096:tcp --ips 104.28.0.0/16 --comment "New WARP IPS"
 ```

 ```bash
  imunify360-agent blocked-port-ip  edit :tcp --ips 104.28.0.0/16 --comment "New WARP IPS"
 ```
```bash
 imunify360-agent blocked-port-ip  edit 587:tcp --ips 104.28.0.0/16 --comment "New WARP IPS"
for ip in $(cat platform360_ips);do imunify360-agent blocked-port-ip  edit 2087:tcp --ips $ip --comment "platform360.io";done

cat list.txt | xargs -n 1 imunify360-agent ip-list local add --purpose white
https://cloudlinux.zendesk.com/hc/en-us/articles/4411329357586-How-to-add-multiple-IPs-to-the-White-List-in-Imunify360
  • Check if IP is blocked by Imunify360
    imunify360-agent blocked-port list --by-ip IP
    
imunify360-agent |grep -A2 -B2 allow
    blocked-port        Add item(-s) to blocked ports. Only applicable if the
                        FIREWALL.port_blocking_mode config option is set to
                        ALLOW (allow access to all ports by default).
    blocked-port-ip     Add IPs to a blocked port Only applicable if the
                        FIREWALL.port_blocking_mode config option is set to
                        ALLOW (allow access to all ports by default).
    check               whether ModSecurity settings have values recommended
                        by Imunify360
  • Apply changes from cli to config https://docs.imunify360.com/config_file_description/#how-to-apply-changes-from-cli

  • Add path to ignore

    imunify360-agent malware ignore add PATH
    
  • Imunify360-agent malware commands. Php imunify scanner

    imunify360-agent config show | grep -iA5 PROACTIVE      # key is PROACTIVE_DEFENCE (British spelling)
    
    
    imunify360-agent config update '{"PROACTIVE_DEFENCE": {"php_immunity": false}}'
    php -r 'var_dump(function_exists("proc_open"));'
    

Re-enable after the deploy:

imunify360-agent config update '{"PROACTIVE_DEFENCE": {"php_immunity": true}}'