From owner-freebsd-security Tue Mar 7 14: 4: 3 2000 Delivered-To: freebsd-security@freebsd.org Received: from mail1.uunet.ca (mail1.uunet.ca [209.167.141.3]) by hub.freebsd.org (Postfix) with ESMTP id 0185F37BEEE for ; Tue, 7 Mar 2000 14:03:46 -0800 (PST) (envelope-from matt@ARPA.MAIL.NET) Received: from epsilon.lucida.qc.ca ([216.95.146.6]) by mail1.uunet.ca with ESMTP id <216957-6669>; Tue, 7 Mar 2000 17:03:21 -0500 Date: Tue, 7 Mar 2000 17:03:20 -0500 From: Matt Heckaman X-Sender: matt@epsilon.lucida.qc.ca To: Jason Jenkins Cc: freebsd-security@FreeBSD.ORG Subject: Re: hosts allow In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This matches on a first come first serve basis along the lines of ipfw, therefore you need to place your ALLOW rules /before/ your DENY rules for them to work as you want them to. So in other words: ALL : some.hostname : allow ALL : ALL : deny See hosts_access(5) and hosts_options(5) for more, hope that helps. Matt -- Matt Heckaman [matt@arpa.mail.net|matt@relic.net] [Please do not send me] !Powered by FreeBSD/x86! [http://www.freebsd.org] [any SPAM (UCE) e-mail] On Tue, 7 Mar 2000, Jason Jenkins wrote: : Date: Tue, 7 Mar 2000 16:53:15 -0500 : From: Jason Jenkins : To: freebsd-security@FreeBSD.ORG : Subject: hosts allow : : Hi I have a question regarding the hosts.allow file. I am trying to simply : deny everyone access, and only allow certain people to access my machine. : So this is what I did: : : : ALL : ALL : deny : ALL : hostname : allow : : However, that did not seem to work. It would not allow me to log in from : IP. Anything i am doing wrong? : : : : To Unsubscribe: send mail to majordomo@FreeBSD.org : with "unsubscribe freebsd-security" in the body of the message : To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message