Re: [SLUG] Crack Attempts

From: R.G. Mayhue (rmayhue@tampabay.rr.com)
Date: Sat Jul 16 2005 - 15:51:38 EDT


On Saturday 16 July 2005 03:19 pm, Eben King wrote:
>
> On Fri, 15 Jul 2005, Logan Tygart wrote:
> > Just set up your /etc/hosts.deny man hosts.deny will
> > help in that regard.
>
> OK, in /etc/hosts.deny I put
>
> ssh : ALL

sshd:ALL

> and in /etc/hosts.allow there's only one line
>
> nfs : 192.168.1.0/24
>
> I did "service sshd restart" as root, and I could _still_
> log in to localhost over SSH. What do I need to do? The
> services as used in /etc/hosts.{allow,deny} are those
> listed in /etc/services, which are not necessarily the
> daemon names, right?

Yes, it is the daemon name. BTW you do not need to restart
the service. The changes will be seen immediately by
daemons compiled with tcpwrappers support (tcpd).

-- Rob
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:52:31 EDT