[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Blocking sub-range of IP addresses



It would be useful to have something that would take
an IP address range and return the minimum coverage
CIDR for that block (for use in feeding to iptables).

For those addicted to command line (gipsc needs gnome), try netmask :

#netmask -c 192.168.10.224:192.168.10.255
 192.168.10.224/27
#netmask -c 192.168.10.23:192.168.10.55
 192.168.10.23/32
 192.168.10.24/29
 192.168.10.32/28
 192.168.10.48/29
#netmask -r  192.168.10.48/29
 192.168.10.48- 192.168.10.55

--
Guillaume Avez
Administrateur Systemes et Reseaux
tel. +33 169 07 34 55
mailto:SysAdmin.Avez@NetCourrier.com



Reply to: