From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 20:37:15 2003 Return-Path: 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 D25F537B401 for ; Tue, 15 Apr 2003 20:37:15 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F29443FBD for ; Tue, 15 Apr 2003 20:37:14 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h3G3b2gE003973; Wed, 16 Apr 2003 13:37:02 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1])h3G3awg9097518; Wed, 16 Apr 2003 13:37:01 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Wed, 16 Apr 2003 13:36:58 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Are-Harald Brenne In-Reply-To: <20030414233408.000042ad.are-harald.brenne@econ.uib.no> Message-ID: <20030416133334.Q96894-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: hosts.allow wildcards for login.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 03:37:16 -0000 On Mon, 14 Apr 2003, Are-Harald Brenne wrote: > I want to restrict ftp logins to computers on the 10.10. - network. > > >From the login.access manpage: > > host.allow list List of remote host wildcards from > which users in the class may access. > > How does this wildcard thing work? I tried 10.10., 10.10 and 10.10.0.0/16. > Which manpage says that? /etc/hosts.allow is your friend: # Provide a small amount of protection for ftpd ftpd : localhost : allow #ftpd : .nice.guy.example.com : allow #ftpd : .evil.cracker.example.com : deny ftpd : 10.10.0.0/255.255.0.0 : allow ftpd : ALL : deny -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/