[TriLUG] hosts.deny question?

Owen Berry oberry at trilug.org
Mon Mar 6 22:26:44 EST 2006


I think you have the Apache configuration file confused with the
hosts.deny file. What you have looks suspiciously like the format for an
Apache Location or Directory.

Reading:
http://httpd.apache.org/docs/2.0/mod/core.html#directory
http://httpd.apache.org/docs/2.0/mod/core.html#location

Man pages (type on command line):
man hosts.deny
man hosts.allow
man tcpd

Hope that helps. No problem with the "newbie" questions - how else do
you learn.

Owen

On Mon, 2006-03-06 at 19:44 -0500, WA Brown wrote:
> Hello all,
>       I am new to this group and linux. I hope you tolerate another 
> "newbie". I have a server online at www.havenstead.net and am learning how 
> to do things with it everyday. I am running Redhat9 with an Apache 2.0 
> server.
> 
> This is what I have in the "hosts.deny" file. What have I got wrong?
> 
> #
> # hosts.deny    This file describes the names of the hosts which are
> #               *not* allowed to use the local INET services, as decided
> #               by the '/usr/sbin/tcpd' server.
> #
> # The portmap line is redundant, but it is left to remind you that
> # the new secure portmap uses hosts.deny and hosts.allow.  In particular
> # you should know that NFS uses portmap!
> 
> 
> 
>       Order allow,deny
>       Allow from all
> 
>       Deny from 218.64.*.*
>       Deny from 61.134.32.18
> 
> 
> This what i am getting on my report. How should it be listed?
> 
> WA Brown
> 
> 
> 6 02:45:02 www sshd[32311]: Did not receive identification string from 
> 211.171.202.87
> 
> Mar 6 07:50:10 www sshd[5322]: warning: /etc/hosts.deny, line 12: missing 
> ":" separator
> 
> Mar 6 07:50:10 www sshd[5322]: warning: /etc/hosts.deny, line 13: missing 
> ":" separator
> 
> Mar 6 07:50:10 www sshd[5322]: warning: /etc/hosts.deny, line 15: missing 
> ":" separator
> 
> Mar 6 07:50:10 www sshd[5322]: warning: /etc/hosts.deny, line 16: missing 
> ":" separator
> 
> 




More information about the TriLUG mailing list