From owner-freebsd-questions Mon Dec 23 05:19:21 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA03571 for questions-outgoing; Mon, 23 Dec 1996 05:19:21 -0800 (PST) Received: from islandia.is (root@hummer.islandia.is [194.105.225.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id FAA03563 for ; Mon, 23 Dec 1996 05:19:17 -0800 (PST) Received: from hummer.islandia.is (hordur@hummer.islandia.is [194.105.225.1]) by islandia.is (8.8.3/8.7.3) with SMTP id NAA01494; Mon, 23 Dec 1996 13:19:52 GMT Date: Mon, 23 Dec 1996 13:19:52 +0000 (GMT) From: Hordur Johannsson To: Eporue - Ambient Administration cc: support@freebsd.org Subject: Re: hosts.deny In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by freefall.freebsd.org id FAA03564 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Dec 1996, Eporue - Ambient Administration wrote: > > Hello, I am having some problem with my hosts.deny file. I went and > installed the tcp_wrapper program and I got it working for the most part. > But, what I cant get to work is sending a message to the host I am > denying. So when they telnet in, it gives them the message the boots them > off.. Got any suggestions in this? According to the man pages, it says to > do something like.... > > hosts.deny > > ALL : ALL : twist echo or cat..etc.. go away, or /etc/goaway.msg I have > tried so many variations of everything i could find inthe man pages... > Please help.. :) > In your /etc/hosts.allow you can try something like, ALL: ALL: twist (/bin/echo "go away") just send a goaway message and then exit ALL: .dom.com: spawn (echo "Access from $h by user %n using %d." | sendmail you): DENY Itīs all there in the man page. You donīt need to use hosts.deny. And you need to be sure tcpd runs up your daemons. Hordur Johannsson