Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a whole network range I would like to block which is 192.241.0.0. In order to block everything in this range I need to know the subnet mask/CIDR.
Until now I have been blocking with a large list of addresses and blocking with my own list of individual addresses.
I don't really need a tutorial on subnet masks because like anything math related I have learned about it and forgotten it many times.
I don't really feel like choosing every CIDR from 1 to 32 and waiting to see if works or not.
I think I must be missing something very basic here. I figured it would be easy to block an address range but I must know the subnet mask first.
whois will tell you the size of the allocation, which is probably what you want.
There is also an ICMP message type called "Address Mask Request", but a) it's not mandatory for hosts to respond to these requests, and b) the network is probably subnetted anyway, so knowing the mask of any individual host is of no value.
You have the answer, but I’m curious (read nosy) about why want to block that netblock and what you’re blocking it from.
None of my business, of course…
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.