I have a Windows 2008R2 Server running IIS 7.5. It is getting bombarded with attempted hacks from similar IPs.
How would I block the IP range with something like 51.255.65.*?
Below is the UI presented to me when adding a Deny restriction
iisiis-7.5ip addressip-blockingwindows-server-2008-r2
Best Answer
You need to specify the range in proper subnet format. You may wish to take a look at our canonical question on IPv4 subnetting, if you're not exactly sure what that means.
For your example, you'd use
51.255.65.0
in the "IP address range" field, and the subnet mask of255.255.255.0
. in the "Mask or Prefix" field.If you're going to be making a habit of this (and also just in general), you may wish to find a nice subnet calculator or subnet mask cheat sheet you like, and add them to your bookmarks.