Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to allow this Ip Range to

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.

but it did not work.

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


share|improve this question
up vote 4 down vote accepted

Using this subnetting calculator I get

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
@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 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 or

share|improve this answer
thanks, but both didn't work for some reason – James Mar 25 '11 at 8:29
Sorry, I had a little mistake there, you must use, You must use the network address, 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

share|improve this answer

Your Answer


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.