Issue
There is a need to add IP to the firewall using the command line interface imunify360-agent to firewall lists.
Environment
- Imunify360
- Any supported OS
Solution
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"
1667018241
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 1.2.33.44 --expiration 1667018241
# imunify360-agent whitelist ip list --by-ip 1.2.33.44
IP TTL COUNTRY IMPORTED_FROM
1.2.33.44 863833 CN None
Useful links
- https://docs.imunify360.com/command_line_interface/#whitelist
- https://docs.imunify360.com/command_line_interface/#blacklist
- https://www.epochconverter.com/
Comments
0 comments
Please sign in to leave a comment.