Can i/how discover subnet IP format from IP range?
by postcd from LinuxQuestions.org on (#56GM8)
Hello,
i have found the IP range 120.76.0.0 - 120.79.255.255 that i want to ban in iptables the way i write x.x.x.x/xx format. Please how to know what that x.x.x.x/xx should be? I have found some online tool where i enter the range and it return it, but unable, these tools like https://www.calculator.net/ip-subnet-calculator.html only have field for single IP and subnet mask.


i have found the IP range 120.76.0.0 - 120.79.255.255 that i want to ban in iptables the way i write x.x.x.x/xx format. Please how to know what that x.x.x.x/xx should be? I have found some online tool where i enter the range and it return it, but unable, these tools like https://www.calculator.net/ip-subnet-calculator.html only have field for single IP and subnet mask.