From owner-freebsd-questions Sat Mar 27 13: 0:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub.psn.ie (mailhub.psn.ie [194.106.150.254]) by hub.freebsd.org (Postfix) with ESMTP id D507214C42 for ; Sat, 27 Mar 1999 13:00:26 -0800 (PST) (envelope-from cillian@mailhub.psn.ie) Received: from cillian (helo=localhost) by mailhub.psn.ie with local-esmtp (Exim 2.12 #3) id 10QzFt-0001XL-00; Sat, 27 Mar 1999 20:00:29 +0000 Date: Sat, 27 Mar 1999 20:00:29 +0000 (GMT) From: Cillian Sharkey To: dissonant Cc: freebsd-questions@freebsd.org Subject: Re: equivalent of BSD/OS /etc/hosts.deny? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there a FreeBSD equivalent of the BSD/OS /etc/hosts.deny? I've run out > of things to look up in the manpages....if there's something, it's > probably painfully obvious. > > I know I can use /etc/login.access to restrict LOGINS from particular > addresses, but I'd like to restrict connections on various ports (or on > all ports, if that's easier) from particular domains/addresses. > > I'm running 3.1-RELEASE. Any information appreciated. Thanks. Yes, you can use the tcp_wrappers package which you can get from the FreeBSD CD's or the ports collection. Once it's installed, the hosts.allow and hosts.deny should be in /usr/local/etc You'll also have to change your /etc/inetd.conf file, an example is given in /usr/local/etc/inetd.conf.wrapped.sample showing how to set it up. Cillian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message