Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 1996 13:19:52 +0000 (GMT)
From:      Hordur Johannsson <hordur@islandia.is>
To:        Eporue - Ambient Administration <eporue@ambient.ops.best.com>
Cc:        support@freebsd.org
Subject:   Re: hosts.deny
Message-ID:  <Pine.BSI.3.95.961223131554.1013B-100000@hummer.islandia.is>
In-Reply-To: <Pine.BSF.3.95.961223024015.625A-100000@ambient.ops.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.961223131554.1013B-100000>