4

I would like to allow this Ip Range 94.1.1.1 to 94.15.255.255

I tried inputting this in the hosts.allow file after reading here that you need to use networks and netmasks? i don't know much about this so i don't know what i have done wrong.

94.1.1.1/255.255.255.255

but it did not work.

What should i be putting in the file to make it allow that ip range?

Thanks

James
  • 93
  • 1
  • 1
  • 6

4 Answers4

7

Using this subnetting calculator I get

94.1.1.1/12

as the value to put in your hosts.allow

user9517
  • 115,471
  • 20
  • 215
  • 297
6

The Correct answer which I tested and is working is as follows.

94.1.  # (just leave everything after the dot .)

In the case if you are manually editing the host.allow file.

Anything you put like / will be not allowed in host file as per my experiments.

If you want to allow your ip range the code should be look like this.

whostmgrd :94.1. :allow
whostmgrd : ALL : deny

This will prevent WHM login and allow only IP starting from 94.1.
Hope this will be helpful to you.

Thomas
  • 4,225
  • 5
  • 23
  • 28
4

I think you should be able to use 94.0.0.0/12 or 94.0.0.0/255.240.0.0

kasperd
  • 30,455
  • 17
  • 76
  • 124
CronosNull
  • 205
  • 1
  • 7
  • 1
    thanks, but both didn't work for some reason – James Mar 25 '11 at 08:29
  • 2
    Sorry, I had a little mistake there, you must use 94.0.0.0/255.240.0.0, You must use the network address, 94.0.0.0 in this case. I glad you has figured it out by yourself :) – CronosNull Mar 25 '11 at 18:26
2

using a mixture of what you both put, i managed to get it.

it was 94.0.0.0/255.240.0.0

James
  • 93
  • 1
  • 1
  • 6