From owner-freebsd-questions Thu Jul 25 6:53:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D07BA37B401 for ; Thu, 25 Jul 2002 06:53:06 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-153-84.in-addr.btopenworld.com [217.39.153.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22BA643E77 for ; Thu, 25 Jul 2002 06:53:05 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17Xj33-000LUY-00 for freebsd-questions@freebsd.org; Thu, 25 Jul 2002 14:52:57 +0100 Date: Thu, 25 Jul 2002 14:52:57 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: hosts.allow Message-ID: <20020725135256.GB80539@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <004401c233db$952ffe00$0400a8c0@lucy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004401c233db$952ffe00$0400a8c0@lucy> User-Agent: Mutt/1.4i X-Scanner: exiscan *17Xj33-000LUY-00*UN.dA04lsgU* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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