[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] host.deny block range of IP



On Thu, 15 Feb 2001, Gerald Waugh wrote:

> > I want to deny ALL connections from 202.0.0.0 to 203.255.255.255
> > 
> Just read my friend "man host.deny"202.000.000.000/255.0.0.0
> Ok maybe something like this would work. 
> 203.000.000.000/255.0.0.0

> Although I would like a verify on my binary math.

2 out of 3 ?  

203-202=1 ;)

you want 

202.0.0.0/254.0.0.0

Fortunatly the starting address is even, you can of course split the
addresses up and make 2 entries when necessary....

The truely lazy can get a small program thet does this btw:

http://lpccomp.bc.ca/netmask/
--
ps: admittidly, the man page for this is hard to find...

it's not hosts.deny or such, but hosts_access... i don't nkow why ,
actually, it really should be referenced better from the man page for
inetd

gsh