Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Using this subnetting calculator I get

94.1.1.1/12

as the value to put in your hosts.allow

share|improve this answer
    
thanks, but didn't work for some reason –  James Mar 25 '11 at 8:28
1  
@James:In what way does it not work ? –  Iain Mar 25 '11 at 8:32
    
Well i remote logged in to my home pc to test it, and it didn't let me in, but when i changed it to 94.0.0.0/255.240.0.0 it worked. Maybe i did something wrong? –  James Mar 25 '11 at 10:00
    
That calculator is incredibly useful, ty –  James Mar 25 '11 at 10:08

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

share|improve this answer
    
thanks, but both didn't work for some reason –  James Mar 25 '11 at 8:29
1  
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

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

it was 94.0.0.0/255.240.0.0

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.