[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] host.deny block range of IP
- Subject: Re: [cobalt-users] host.deny block range of IP
- From: flash22@xxxxxxx
- Date: Thu Feb 15 17:38:05 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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