Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2002 14:52:57 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: hosts.allow
Message-ID:  <20020725135256.GB80539@catflap.home.slightlystrange.org>
In-Reply-To: <004401c233db$952ffe00$0400a8c0@lucy>
References:  <004401c233db$952ffe00$0400a8c0@lucy>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 25, 2002 at 03:02:50PM +0200, Dave Raven wrote:
> Hello all,
>     This seems to be a fairly simple questions, but has
>     been bothering me for a while now.
>     I want to specify whole IP classes instead of single ips
>     in my hosts.allow config file.
> 
>     These are the methods I have tried (unsuccessfully):
> 
>         sshd : 192.168.0.0/255.255.255.0 : allow
>         sshd : 192.168.0. : allow
>         sshd : 192.168.0/24 : allow
>         sshd : 192.168.0.024 : allow
> 
>     What is the actuall way of doing this?

It seems there are a few ways of doing it - take a look at the section 
headed PATTERNS in man 5 hosts_access

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020725135256.GB80539>