Introduction
This guide provides the exact commands to block individual IPs and IP ranges using Imunify360, including the calculation of how many IP addresses are blocked in each case.
Basic Blocking Commands
Block Individual IP
imunify360-agent blacklist ip add [IP_ADDRESS]
Example:
imunify360-agent blacklist ip add 192.168.1.100
- IPs blocked: 1
Most Common CIDR Ranges and IP Count
/24 Ranges (Class C Block)
imunify360-agent blacklist ip add 192.168.1.0/24
- IPs blocked: 256 (192.168.1.0 - 192.168.1.255)
- Typical use: Block a complete subnet
/16 Ranges (Class B Block)
imunify360-agent blacklist ip add 47.79.0.0/16
- IPs blocked: 65,536 (47.79.0.0 - 47.79.255.255)
- Typical use: Block hosting ranges/botnets
/8 Ranges (Class A Block)
imunify360-agent blacklist ip add 10.0.0.0/8
- IPs blocked: 16,777,216 (10.0.0.0 - 10.255.255.255)
- Typical use: Block private networks or very large ranges
Other Useful Ranges
/20 Range
imunify360-agent blacklist ip add 203.0.113.0/20
- IPs blocked: 4,096 (203.0.113.0 - 203.0.127.255)
/22 Range
imunify360-agent blacklist ip add 198.51.100.0/22
- IPs blocked: 1,024 (198.51.100.0 - 198.51.103.255)
/26 Range
imunify360-agent blacklist ip add 192.0.2.0/26
- IPs blocked: 64 (192.0.2.0 - 192.0.2.63)