On Fri, 27 Oct 2000, root wrote:

> Anyone know the format of entries in the hosts.deny file?
> 
> Chris
> 

Suggest:

ALL: ALL


This will deny access to all systems.

Then, you specifically add systems (or subnets) that you want to GRANT
access.

/etc/hosts.allow:

ALL: LOCAL, a.b.c.d, e.f., .foo.com, joker.goes.wild.org

The above will grant access to ALL services to:

LOCAL  =   your own machine (localhost = 127.0.0.1 when referenced from
                                your machine)

a.b.c.d = machine with ip number a.b.c.d

e.f.   = all machines on subnet e.f, that is with ip numbers that
                start with e.f  (for example e.f.g.h, e.f.x.y,...)
         NOTE the trailing "."  It stands for "e.f.*.*"

.foo.com = all machines with domain name which ends with foo.com
                Note the leading "." which means .foo.com = "*.*.foo.com"

joker.goes.wild.org = machine with that domain name


Note:  you can specify access service by service explicitly instead of
using the keyword ALL (on the left side of :) if you need to.

Again, the strategy I follow is to first deny access to all, then add back
in explicit permission to enter.  


-- 
***************************************************************************
Jerry Winegarden        OIT/Technical Support           Duke University
[EMAIL PROTECTED]            http://www-jerry.oit.duke.edu
***************************************************************************



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to