There is a need to add IP to the firewall using the command line interface imunify360-agent to firewall lists.
- Any supported OS
Value for --expiration should be entered in seconds since the epoch (UNIX time) as per documentation. It can be calculated from CLI, via other tools.
1. Get value for 10+ days from CLI:
$ date -d "+10 days" +"%s"
2. Or get it from the https://www.epochconverter.com/ service:
Then, using the value received, add the IP to the firewall list on the server (in the example, it will be whitelisted until October 29)
# imunify360-agent whitelist ip add 126.96.36.199 --expiration 1667018241
# imunify360-agent whitelist ip list --by-ip 188.8.131.52
IP TTL COUNTRY IMPORTED_FROM
184.108.40.206 863833 CN None